Mercurial > hgrepos > Python2 > PyMuPDF
comparison mupdf-source/thirdparty/zlib/.github/workflows/cmake.yml @ 2:b50eed0cc0ef upstream
ADD: MuPDF v1.26.7: the MuPDF source as downloaded by a default build of PyMuPDF 1.26.4.
The directory name has changed: no version number in the expanded directory now.
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Mon, 15 Sep 2025 11:43:07 +0200 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 1:1d09e1dec1d9 | 2:b50eed0cc0ef |
|---|---|
| 1 name: CMake | |
| 2 on: [push, pull_request] | |
| 3 jobs: | |
| 4 ci-cmake: | |
| 5 name: ${{ matrix.name }} | |
| 6 runs-on: ${{ matrix.os }} | |
| 7 strategy: | |
| 8 fail-fast: false | |
| 9 matrix: | |
| 10 include: | |
| 11 - name: Ubuntu GCC | |
| 12 os: ubuntu-latest | |
| 13 compiler: gcc | |
| 14 | |
| 15 # Test out of source builds | |
| 16 - name: Ubuntu GCC OSB | |
| 17 os: ubuntu-latest | |
| 18 compiler: gcc | |
| 19 build-dir: ../build | |
| 20 src-dir: ../zlib | |
| 21 | |
| 22 - name: Ubuntu GCC -O3 | |
| 23 os: ubuntu-latest | |
| 24 compiler: gcc | |
| 25 cflags: -O3 | |
| 26 | |
| 27 - name: Ubuntu Clang | |
| 28 os: ubuntu-latest | |
| 29 compiler: clang | |
| 30 | |
| 31 - name: Ubuntu Clang Debug | |
| 32 os: ubuntu-latest | |
| 33 compiler: clang | |
| 34 build-config: Debug | |
| 35 | |
| 36 - name: Windows MSVC Win32 | |
| 37 os: windows-latest | |
| 38 compiler: cl | |
| 39 cmake-args: -A Win32 | |
| 40 | |
| 41 - name: Windows MSVC Win64 | |
| 42 os: windows-latest | |
| 43 compiler: cl | |
| 44 cmake-args: -A x64 | |
| 45 | |
| 46 - name: Windows GCC | |
| 47 os: windows-latest | |
| 48 compiler: gcc | |
| 49 cmake-args: -G Ninja | |
| 50 | |
| 51 - name: macOS Clang | |
| 52 os: macos-latest | |
| 53 compiler: clang | |
| 54 | |
| 55 - name: macOS GCC | |
| 56 os: macos-latest | |
| 57 compiler: gcc-11 | |
| 58 | |
| 59 steps: | |
| 60 - name: Checkout repository | |
| 61 uses: actions/checkout@v3 | |
| 62 | |
| 63 - name: Install packages (Windows) | |
| 64 if: runner.os == 'Windows' | |
| 65 run: | | |
| 66 choco install --no-progress ninja ${{ matrix.packages }} | |
| 67 | |
| 68 - name: Generate project files | |
| 69 run: cmake -S ${{ matrix.src-dir || '.' }} -B ${{ matrix.build-dir || '.' }} ${{ matrix.cmake-args }} -D CMAKE_BUILD_TYPE=${{ matrix.build-config || 'Release' }} | |
| 70 env: | |
| 71 CC: ${{ matrix.compiler }} | |
| 72 CFLAGS: ${{ matrix.cflags }} | |
| 73 | |
| 74 - name: Compile source code | |
| 75 run: cmake --build ${{ matrix.build-dir || '.' }} --config ${{ matrix.build-config || 'Release' }} | |
| 76 | |
| 77 - name: Run test cases | |
| 78 run: ctest -C Release --output-on-failure --max-width 120 | |
| 79 working-directory: ${{ matrix.build-dir || '.' }} | |
| 80 | |
| 81 - name: Upload build errors | |
| 82 uses: actions/upload-artifact@v3 | |
| 83 if: failure() | |
| 84 with: | |
| 85 name: ${{ matrix.name }} (cmake) | |
| 86 path: | | |
| 87 **/CMakeFiles/CMakeOutput.log | |
| 88 **/CMakeFiles/CMakeError.log | |
| 89 retention-days: 7 |
