From f58149c9cfab3ad102cb8c270d3408785cb1c4df Mon Sep 17 00:00:00 2001 From: Jan Baudisch Date: Mon, 29 Apr 2024 17:30:10 +0200 Subject: [PATCH] fix(ci): include homebrew installed headers on m1 macOS --- .github/workflows/CI.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index b77e685..eae4e6d 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -105,6 +105,9 @@ jobs: cp LICENSE $BUILD_ROOT/licenses/mt-kahypar/ # TODO: currently, macOS is only supported on master, move below clone to check out latest version when released. # git checkout $(git describe --tags $(git rev-list --tags --max-count=1)) + - name: Setup Homebrew environment + if: ${{ matrix.target.triple == 'aarch64-apple-darwin' && matrix.d4 == 'include' }} + run: echo CPPFLAGS="-I/opt/homebrew/include" >> $GITHUB_ENV - name: Build (including d4) if: ${{ matrix.d4 == 'include' }} run: cargo build