aboutsummaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorRobin Jarry <robin@jarry.cc>2024-05-09 22:16:27 +0200
committerRobin Jarry <robin@jarry.cc>2024-05-09 22:49:22 +0200
commitd582ac682cdf859a4c350f4a96806c75606c5b57 (patch)
treeb509f20291927c45a68d25f32b73bcf401ad5ed3 /.github
parent8d952fe954b1df4ce3970868368252044ba4abca (diff)
downloadaerc-d582ac682cdf859a4c350f4a96806c75606c5b57.tar.gz
github: fix macos build
setup-go@v2 does not work anymore. Let's not run on deprecated stuff. Update action versions. Also, homebrew base prefix has changed and is not in the default clang search path anymore. Update CGO_*FLAGS accordingly. Signed-off-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/macos.yml20
1 files changed, 17 insertions, 3 deletions
diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml
index 52559861..950a7642 100644
--- a/.github/workflows/macos.yml
+++ b/.github/workflows/macos.yml
@@ -4,13 +4,27 @@ on: push
jobs:
macos:
runs-on: macos-latest
+ strategy:
+ matrix:
+ go:
+ - '1.18'
+ - '1.22'
env:
DESTDIR: ./out
- GOFLAGS: "-tags=notmuch"
+ GOFLAGS: -tags=notmuch
+ name: MacOS Go ${{ matrix.go }}
steps:
- - uses: actions/checkout@v2
- - uses: actions/setup-go@v2
+ - 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