comparison mupdf-source/thirdparty/leptonica/.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
3 on: [push, pull_request, workflow_dispatch]
4
5 env:
6 # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
7 BUILD_TYPE: Release
8
9 jobs:
10 build:
11 # The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac.
12 # You can convert this to a matrix build if you need cross-platform coverage.
13 # See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
14 runs-on: ${{ matrix.os }}
15 strategy:
16 fail-fast: false
17 matrix:
18 os: [ubuntu-20.04, macos-12]
19
20 steps:
21 - uses: actions/checkout@v4
22
23 - name: Install dependencies on Linux
24 if: runner.os == 'Linux'
25 run: |
26 sudo apt-get update
27 sudo apt-get install -y ninja-build
28 sudo apt-get install -y libwebpdemux2 libwebp-dev
29 sudo apt-get install -y libopenjp2-7 libopenjp2-7-dev libopenjp2-tools
30 sudo apt-get install -y libgif-dev
31 cmake --version
32
33 - name: Install dependencies on macOS
34 if: runner.os == 'macOS'
35 run: |
36 brew install ninja
37 brew install giflib
38 brew install openjpeg
39 brew install webp
40 cmake --version
41
42
43 - name: Configure CMake
44 # Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
45 # See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
46 run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -G Ninja -DSW_BUILD=OFF -DBUILD_PROG=OFF -DBUILD_SHARED_LIBS=ON
47
48 - name: Build
49 # Build your program with the given configuration
50 run: sudo cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --target install
51