Skip to content

Commit b593356

Browse files
authored
Merge pull request #162 from maxmind/greg/fix-macos-build
Set include and link dirs explicitly for macOS
2 parents e7752d3 + d6da775 commit b593356

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/test-libmaxminddb.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,16 @@ jobs:
4848
run: brew install libmaxminddb
4949
if: matrix.platform == 'macos-latest'
5050

51+
- name: "Work around macos arm64 homebrew directory changes"
52+
if: runner.os == 'macOS' && runner.arch == 'ARM64'
53+
run: |
54+
echo "CFLAGS=-I/opt/homebrew/include" >> "$GITHUB_ENV"
55+
echo "LDFLAGS=-L/opt/homebrew/lib" >> "$GITHUB_ENV"
56+
5157
- name: Build with Werror and Wall
5258
run: python setup.py build
5359
env:
54-
CFLAGS: "-Werror -Wall -Wextra"
60+
CFLAGS: "${{ env.CFLAGS }} -Werror -Wall -Wextra"
5561

5662
- name: Test with tox (system libmaxminddb)
5763
run: tox

0 commit comments

Comments
 (0)