From 2c8b7a7620b126341b3d00f3054470240a281ca3 Mon Sep 17 00:00:00 2001 From: Matthew Feickert Date: Sun, 15 Sep 2024 02:20:27 -0500 Subject: [PATCH] Add CPPFLAGS and LDFLAGS to cibuildwheel through CIBW_ENVIRONMENT --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7dc6288..3689e2f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -143,6 +143,7 @@ jobs: CIBW_ARCHS: ${{ matrix.arch }} CIBW_BUILD: cp${{ matrix.python }}-* CIBW_BUILD_VERBOSITY: 2 + CIBW_ENVIRONMENT: CPPFLAGS='-I/opt/homebrew/include' LDFLAGS='-L/opt/homebrew/lib' - name: Upload wheels uses: actions/upload-artifact@v4