Skip to content

Commit 65b4f39

Browse files
author
Nicholas Rodrigues Lordello
committed
Fix clang installation
1 parent 10bbd4c commit 65b4f39

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/rust.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ jobs:
1515

1616
steps:
1717
- uses: actions/checkout@v3
18+
- name: Install Clang
19+
run: |
20+
LLVM_VERSION=$(rustc --version --verbose | sed -n 's/^LLVM version: \([0-9]*\).*$/\1/p')
21+
curl -s https://apt.llvm.org/llvm.sh | sudo bash -s -- ${LLVM_VERSION}
1822
- name: Lint
1923
run: |
2024
cargo fmt --all -- --check
@@ -25,7 +29,6 @@ jobs:
2529
cargo test --release
2630
- name: Test LLVM Intrinsics
2731
run: |
28-
sudo apt update && sudo apt install clang-16
2932
cargo clippy --features llvm-intrinsics --all-targets -- -D warnings
3033
cargo test --features llvm-intrinsics
3134
cargo test --features llvm-intrinsics --release

0 commit comments

Comments
 (0)