From 4e9202428c674004fba6f3ef51bf7578688c4754 Mon Sep 17 00:00:00 2001 From: Tom McLaughlin Date: Mon, 22 Jul 2024 18:51:24 -0700 Subject: [PATCH] ci: move C_INCLUDE_PATH line --- .github/workflows/sandwich.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/sandwich.yml b/.github/workflows/sandwich.yml index b6982c90..5a81fc01 100644 --- a/.github/workflows/sandwich.yml +++ b/.github/workflows/sandwich.yml @@ -57,6 +57,8 @@ jobs: # For older GHCs brew install llvm@13 echo /opt/homebrew/opt/llvm@13/bin >> $GITHUB_PATH + # https://gitlab.haskell.org/ghc/ghc/-/issues/20592#note_391266 + echo "C_INCLUDE_PATH=`xcrun --show-sdk-path`/usr/include/ffi" >> "$GITHUB_ENV" - name: Install dependencies (Windows) if: runner.os == 'Windows' @@ -66,9 +68,6 @@ jobs: - name: Build run: | - export C_INCLUDE_PATH="`xcrun --show-sdk-path`/usr/include/ffi" - # export LDFLAGS="-L/opt/homebrew/opt/llvm@13/lib" - # export CPPFLAGS="-I/opt/homebrew/opt/llvm@13/include" cabal configure --enable-tests --enable-benchmarks --test-show-details=direct cabal build all