From 059e2c0b0bee59f01b632d07ade91a1fca297f78 Mon Sep 17 00:00:00 2001 From: James Smith Date: Fri, 6 Sep 2024 12:27:14 +1000 Subject: [PATCH] try explicitly setting CC --- .github/workflows/test.yaml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index ddbfe7d49..c0d43dfbb 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -22,12 +22,6 @@ jobs: toolchain: 1.65.0 override: true components: rustfmt - - name: (MacOS) install LLVM - uses: KyleMayes/install-llvm-action@v2 - if: "${{ matrix.platform == 'macos-latest' }}" - with: - version: "17" - env: true - name: Add wasm32 target run: rustup target add wasm32-unknown-unknown - name: Checkout @@ -40,6 +34,15 @@ jobs: run: cargo build --release - name: unit tests run: cargo test -- --nocapture + - name: (MacOS) install LLVM + uses: KyleMayes/install-llvm-action@v2 + if: "${{ matrix.platform == 'macos-latest' }}" + with: + version: "17" + directory: "/opt/llvm" + - name: (MacOS) set LLVM 17 as CC + if: "${{ matrix.platform == 'macos-latest' }}" + run: echo "CC=/opt/llvm/bin/clang" >> $GITHUB_ENV - name: build (wasm32) run: cargo build --target wasm32-unknown-unknown - name: check (wasm32)