comparison mupdf-source/thirdparty/leptonica/.github/workflows/autotools-macos.yml @ 3:2c135c81b16c

MERGE: upstream PyMuPDF 1.26.4 with MuPDF 1.26.7
author Franz Glasner <fzglas.hg@dom66.de>
date Mon, 15 Sep 2025 11:44:09 +0200
parents b50eed0cc0ef
children
comparison
equal deleted inserted replaced
0:6015a75abc2d 3:2c135c81b16c
1 name: autotools-macos
2
3 # autotools build and unit tests of Leptonica on macOS Homebrew.
4
5 on:
6 pull_request:
7 branches: [ master ]
8 paths:
9 - '**.c'
10 - '**.h'
11 - 'm4/*.m4'
12 - 'Makefile.am'
13 - 'autogen.sh'
14 - 'configure.ac'
15
16 push:
17
18 # Trigger workflow in GitHub web frontend or from API.
19 workflow_dispatch:
20
21 jobs:
22
23 brew:
24 runs-on: ${{ matrix.config.os }}
25 strategy:
26 fail-fast: false
27 matrix:
28 config:
29 - { os: macos-12, cc: clang }
30 - { os: macos-13, cc: clang }
31
32 steps:
33 - uses: actions/checkout@v4
34
35 - name: Display compiler version and latest Git history
36 run: |
37 ${{ matrix.config.cc }} --version
38 git log -3 --pretty=format:'%h %ad %s | %an'
39
40 - name: Clean Homebrew installation
41 run: |
42 brew uninstall aws-sam-cli azure-cli bazelisk
43 brew uninstall geckodriver firefox google-chrome microsoft-edge
44 brew info python3
45
46 - name: Install dependencies
47 run: |
48 brew install automake gnuplot || true
49
50 - name: Setup Leptonica
51 run: |
52 ./autogen.sh
53
54 - name: Configure Leptonica
55 run: |
56 ./configure 'CC=${{ matrix.config.cc }}'
57
58 - name: Make and install Leptonica
59 run: |
60 make
61 sudo make install
62
63 - name: Make and run unit tests
64 run: |
65 make check