From 65b4f3941a72bbd5f2c5d729514a846c48272915 Mon Sep 17 00:00:00 2001 From: Nicholas Rodrigues Lordello Date: Tue, 29 Aug 2023 11:36:31 +0200 Subject: [PATCH] Fix clang installation --- .github/workflows/rust.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 0d06a13..540a656 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -15,6 +15,10 @@ jobs: steps: - uses: actions/checkout@v3 + - name: Install Clang + run: | + LLVM_VERSION=$(rustc --version --verbose | sed -n 's/^LLVM version: \([0-9]*\).*$/\1/p') + curl -s https://apt.llvm.org/llvm.sh | sudo bash -s -- ${LLVM_VERSION} - name: Lint run: | cargo fmt --all -- --check @@ -25,7 +29,6 @@ jobs: cargo test --release - name: Test LLVM Intrinsics run: | - sudo apt update && sudo apt install clang-16 cargo clippy --features llvm-intrinsics --all-targets -- -D warnings cargo test --features llvm-intrinsics cargo test --features llvm-intrinsics --release