Skip to content

Commit

Permalink
try explicitly setting CC
Browse files Browse the repository at this point in the history
  • Loading branch information
james-rms committed Sep 6, 2024
1 parent b777773 commit 059e2c0
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand Down

0 comments on commit 059e2c0

Please sign in to comment.