Mercurial > hgrepos > Python2 > PyMuPDF
comparison mupdf-source/thirdparty/zint/.github/workflows/ci.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: CI | |
| 2 | |
| 3 # Controls when the action will run. Triggers the workflow on push or pull request | |
| 4 # events but only for the master branch | |
| 5 on: | |
| 6 push: | |
| 7 branches: [ master, github_ci ] | |
| 8 pull_request: | |
| 9 branches: [ master ] | |
| 10 | |
| 11 env: | |
| 12 # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) | |
| 13 BUILD_TYPE: Release | |
| 14 | |
| 15 jobs: | |
| 16 build-ubuntu: | |
| 17 runs-on: ubuntu-latest | |
| 18 | |
| 19 # Steps represent a sequence of tasks that will be executed as part of the job | |
| 20 steps: | |
| 21 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
| 22 - uses: actions/checkout@v2 | |
| 23 | |
| 24 - name: Install libpng-dev | |
| 25 run: sudo apt-get install libpng-dev | |
| 26 | |
| 27 - name: Create Build Environment | |
| 28 # Some projects don't allow in-source building, so create a separate build directory | |
| 29 # We'll use this as our working directory for all subsequent commands | |
| 30 run: cmake -E make_directory ${{runner.workspace}}/build | |
| 31 | |
| 32 - name: Configure CMake | |
| 33 working-directory: ${{runner.workspace}}/build | |
| 34 # Use a bash shell so we can use the same syntax for environment variable | |
| 35 # access regardless of the host operating system | |
| 36 shell: bash | |
| 37 run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DZINT_TEST=ON -DZINT_STATIC=ON -DZINT_USE_QT=OFF | |
| 38 | |
| 39 - name: Build | |
| 40 working-directory: ${{runner.workspace}}/build | |
| 41 shell: bash | |
| 42 # Execute the build. You can specify a specific target with "--target <NAME>" | |
| 43 run: cmake --build . -j8 --config $BUILD_TYPE | |
| 44 | |
| 45 - name: Test | |
| 46 working-directory: ${{runner.workspace}}/build | |
| 47 shell: bash | |
| 48 # Execute tests defined by the CMake configuration. | |
| 49 # See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail | |
| 50 run: LD_LIBRARY_PATH=$LD_LIBRARY_PATH:"$(pwd)/backend" PATH=$PATH:"$(pwd)/frontend" ctest -V -C $BUILD_TYPE | |
| 51 | |
| 52 build-ubuntu-debug: | |
| 53 runs-on: ubuntu-latest | |
| 54 | |
| 55 env: | |
| 56 BUILD_TYPE: Debug | |
| 57 | |
| 58 steps: | |
| 59 - uses: actions/checkout@v2 | |
| 60 | |
| 61 - name: Install libpng-dev | |
| 62 run: sudo apt-get install libpng-dev | |
| 63 | |
| 64 - name: Create Build Environment | |
| 65 run: cmake -E make_directory ${{runner.workspace}}/build | |
| 66 | |
| 67 - name: Configure CMake | |
| 68 working-directory: ${{runner.workspace}}/build | |
| 69 shell: bash | |
| 70 run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DZINT_TEST=ON -DZINT_STATIC=ON -DZINT_USE_QT=OFF | |
| 71 | |
| 72 - name: Build | |
| 73 working-directory: ${{runner.workspace}}/build | |
| 74 shell: bash | |
| 75 run: cmake --build . -j8 --config $BUILD_TYPE | |
| 76 | |
| 77 - name: Test | |
| 78 working-directory: ${{runner.workspace}}/build | |
| 79 shell: bash | |
| 80 run: LD_LIBRARY_PATH=$LD_LIBRARY_PATH:"$(pwd)/backend" PATH=$PATH:"$(pwd)/frontend" ctest -V -C $BUILD_TYPE | |
| 81 | |
| 82 build-windows-32bit: | |
| 83 runs-on: windows-latest | |
| 84 | |
| 85 steps: | |
| 86 - uses: actions/checkout@v2 | |
| 87 | |
| 88 - name: Create Build Environment | |
| 89 run: cmake -E make_directory ${{runner.workspace}}/build | |
| 90 | |
| 91 - name: Configure CMake | |
| 92 working-directory: ${{runner.workspace}}/build | |
| 93 shell: bash | |
| 94 run: cmake $GITHUB_WORKSPACE -A Win32 -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DZINT_TEST=ON -DZINT_STATIC=ON -DZINT_USE_PNG=OFF -DZINT_USE_QT=OFF | |
| 95 | |
| 96 - name: Build | |
| 97 working-directory: ${{runner.workspace}}/build | |
| 98 shell: bash | |
| 99 run: cmake --build . -j8 --config $BUILD_TYPE | |
| 100 | |
| 101 - name: Test | |
| 102 working-directory: ${{runner.workspace}}/build | |
| 103 shell: bash | |
| 104 run: PATH=$PATH:"$(pwd)/backend/Release:$(pwd)/frontend/Release" ctest -V -C $BUILD_TYPE | |
| 105 | |
| 106 build-windows-64bit: | |
| 107 runs-on: windows-latest | |
| 108 | |
| 109 steps: | |
| 110 - uses: actions/checkout@v2 | |
| 111 | |
| 112 - name: Create Build Environment | |
| 113 run: cmake -E make_directory ${{runner.workspace}}/build | |
| 114 | |
| 115 - name: Configure CMake | |
| 116 working-directory: ${{runner.workspace}}/build | |
| 117 shell: bash | |
| 118 run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DZINT_TEST=ON -DZINT_STATIC=ON -DZINT_USE_PNG=OFF -DZINT_USE_QT=OFF | |
| 119 | |
| 120 - name: Build | |
| 121 working-directory: ${{runner.workspace}}/build | |
| 122 shell: bash | |
| 123 run: cmake --build . -j8 --config $BUILD_TYPE | |
| 124 | |
| 125 - name: Test | |
| 126 working-directory: ${{runner.workspace}}/build | |
| 127 shell: bash | |
| 128 run: PATH=$PATH:"$(pwd)/backend/Release:$(pwd)/frontend/Release" ctest -V -C $BUILD_TYPE | |
| 129 | |
| 130 build-macOS: | |
| 131 runs-on: macOS-latest | |
| 132 | |
| 133 steps: | |
| 134 - uses: actions/checkout@v2 | |
| 135 | |
| 136 - name: Create Build Environment | |
| 137 run: cmake -E make_directory ${{runner.workspace}}/build | |
| 138 | |
| 139 - name: Configure CMake | |
| 140 working-directory: ${{runner.workspace}}/build | |
| 141 shell: bash | |
| 142 run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DZINT_TEST=ON -DZINT_STATIC=ON -DZINT_USE_PNG=OFF -DZINT_USE_QT=OFF | |
| 143 | |
| 144 - name: Build | |
| 145 working-directory: ${{runner.workspace}}/build | |
| 146 shell: bash | |
| 147 run: SDKROOT="$(xcrun --sdk macosx --show-sdk-path)" cmake --build . -j8 --config $BUILD_TYPE | |
| 148 | |
| 149 - name: Test | |
| 150 working-directory: ${{runner.workspace}}/build | |
| 151 shell: bash | |
| 152 run: LD_LIBRARY_PATH=$LD_LIBRARY_PATH:"$(pwd)/backend" PATH=$PATH:"$(pwd)/frontend" ctest -V -C $BUILD_TYPE | |
| 153 | |
| 154 build-macOS-sanitize: | |
| 155 runs-on: macOS-latest | |
| 156 | |
| 157 steps: | |
| 158 - uses: actions/checkout@v2 | |
| 159 | |
| 160 - name: Create Build Environment | |
| 161 run: cmake -E make_directory ${{runner.workspace}}/build | |
| 162 | |
| 163 - name: Configure CMake | |
| 164 working-directory: ${{runner.workspace}}/build | |
| 165 shell: bash | |
| 166 run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DZINT_TEST=ON -DZINT_SANITIZE=ON -DZINT_USE_PNG=OFF -DZINT_USE_QT=OFF | |
| 167 | |
| 168 - name: Build | |
| 169 working-directory: ${{runner.workspace}}/build | |
| 170 shell: bash | |
| 171 run: SDKROOT="$(xcrun --sdk macosx --show-sdk-path)" cmake --build . -j8 --config $BUILD_TYPE | |
| 172 | |
| 173 - name: Test | |
| 174 working-directory: ${{runner.workspace}}/build | |
| 175 shell: bash | |
| 176 run: LD_LIBRARY_PATH=$LD_LIBRARY_PATH:"$(pwd)/backend" PATH=$PATH:"$(pwd)/frontend" ctest -V -C $BUILD_TYPE |
