-
Notifications
You must be signed in to change notification settings - Fork 394
64 lines (51 loc) · 1.27 KB
/
autotools-macos.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: autotools-macos
# autotools build and unit tests of Leptonica on macOS Homebrew.
on:
pull_request:
branches: [ master ]
paths:
- '**.c'
- '**.h'
- 'm4/*.m4'
- 'Makefile.am'
- 'autogen.sh'
- 'configure.ac'
push:
branches:
- master
paths-ignore:
- '**/CMakeLists.txt'
- '.github/*'
# Trigger workflow in GitHub web frontend or from API.
workflow_dispatch:
jobs:
brew:
runs-on: ${{ matrix.config.os }}
strategy:
fail-fast: false
matrix:
config:
- { os: macos-13, cc: clang }
- { os: macos-latest, cc: clang }
steps:
- uses: actions/checkout@v4
- name: Display compiler version and latest Git history
run: |
${{ matrix.config.cc }} --version
git log -3 --pretty=format:'%h %ad %s | %an'
- name: Install dependencies
run: |
brew install automake gnuplot libtool || true
- name: Setup Leptonica
run: |
./autogen.sh
- name: Configure Leptonica
run: |
./configure 'CC=${{ matrix.config.cc }}'
- name: Make and install Leptonica
run: |
make
sudo make install
- name: Make and run unit tests
run: |
make check