| 1 |
--- |
| 2 |
on: push |
| 3 |
|
| 4 |
jobs: |
| 5 |
macos: |
| 6 |
runs-on: macos-latest |
| 7 |
strategy: |
| 8 |
matrix: |
| 9 |
go: |
| 10 |
- '1.25' |
| 11 |
- '1.26' |
| 12 |
env: |
| 13 |
DESTDIR: ./out |
| 14 |
GOFLAGS: -tags=notmuch |
| 15 |
name: MacOS Go ${{ matrix.go }} |
| 16 |
steps: |
| 17 |
- uses: actions/checkout@v4 |
| 18 |
- uses: actions/setup-go@v5 |
| 19 |
with: |
| 20 |
go-version: "${{ matrix.go }}" |
| 21 |
check-latest: true |
| 22 |
- run: brew install notmuch scdoc |
| 23 |
- run: | |
| 24 |
cat >> "$GITHUB_ENV" <<EOF |
| 25 |
CGO_CFLAGS=-I$(brew --prefix)/include |
| 26 |
CGO_LDFLAGS=-L$(brew --prefix)/lib -Wl,-rpath,$(brew --prefix)/lib |
| 27 |
EOF |
| 28 |
- run: make |
| 29 |
- run: make install |
| 30 |
- run: make checkinstall |
| 31 |
- run: make tests |