aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/macos.yml
blob: 3e355a2d12cc3d525f0e087147ee43171d72c99e (plain) (blame)
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
---
on: push

jobs:
  macos:
    runs-on: macos-latest
    strategy:
      matrix:
        go:
          - '1.21'
          - '1.22'
    env:
      DESTDIR: ./out
      GOFLAGS: -tags=notmuch
    name: MacOS Go ${{ matrix.go }}
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-go@v5
        with:
          go-version: ${{ matrix.go }}
          check-latest: true
      - run: brew install gnupg notmuch scdoc
      - run: |
          cat >> "$GITHUB_ENV" <<EOF
          CGO_CFLAGS=-I$(brew --prefix)/include
          CGO_LDFLAGS=-L$(brew --prefix)/lib -Wl,-rpath,$(brew --prefix)/lib
          EOF
      - run: make
      - run: make install
      - run: make checkinstall
      - run: make tests