From d6da77546ce742b148f738cfc63a2e7e58562371 Mon Sep 17 00:00:00 2001 From: Gregory Oschwald Date: Mon, 29 Apr 2024 14:19:23 -0700 Subject: [PATCH] Set include and link dirs explicitly for macOS --- .github/workflows/test-libmaxminddb.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test-libmaxminddb.yml b/.github/workflows/test-libmaxminddb.yml index c001067..1321aca 100644 --- a/.github/workflows/test-libmaxminddb.yml +++ b/.github/workflows/test-libmaxminddb.yml @@ -48,10 +48,16 @@ jobs: run: brew install libmaxminddb if: matrix.platform == 'macos-latest' + - name: "Work around macos arm64 homebrew directory changes" + if: runner.os == 'macOS' && runner.arch == 'ARM64' + run: | + echo "CFLAGS=-I/opt/homebrew/include" >> "$GITHUB_ENV" + echo "LDFLAGS=-L/opt/homebrew/lib" >> "$GITHUB_ENV" + - name: Build with Werror and Wall run: python setup.py build env: - CFLAGS: "-Werror -Wall -Wextra" + CFLAGS: "${{ env.CFLAGS }} -Werror -Wall -Wextra" - name: Test with tox (system libmaxminddb) run: tox