Skip to content

Commit 47cf291

Browse files
committed
fix: install clang
1 parent 7a266c8 commit 47cf291

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,14 @@ jobs:
121121
uses: taiki-e/install-action@f1390fd0d8205ae79e5e57b1d1e300dceeb4163e
122122
with:
123123
124+
# Install clang for MacOS tests due to Apple's Clang not supporting `wasm32-unknown-unknown` target.
125+
- name: Install clang for MacOS
126+
if: ${{ matrix.os == 'macos-latest' && ( matrix.name == 'check-clippy-verify-signature' || matrix.name == 'integration' ) }}
127+
run: |
128+
brew install llvm
129+
echo "$(brew --prefix llvm)/bin" >> "$GITHUB_PATH"
130+
echo "CC=$(brew --prefix llvm)/bin/clang" >> "$GITHUB_ENV"
131+
echo "CXX=$(brew --prefix llvm)/bin/clang++" >> "$GITHUB_ENV"
124132
- name: Setting up cache
125133
uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6
126134
with:

0 commit comments

Comments
 (0)