From ce125d78d626af7b2b98b1d30ff303887c736691 Mon Sep 17 00:00:00 2001 From: Tom Anderson Date: Tue, 16 Jul 2024 22:29:56 +1000 Subject: [PATCH] cache LLVM before --- .github/workflows/build-and-test.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index cd3d0d3..e55e55b 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -8,24 +8,23 @@ concurrency: jobs: build-and-test: - env: - RUSTFLAGS: "-Dwarnings" runs-on: "ubuntu-latest" steps: - name: "Checkout code" uses: "actions/checkout@v4" + - name: "Cache build artifacts" + uses: "Swatinem/rust-cache@v2" + with: + cache-directories: "${{ env.LLVM_PATH }}" + - name: "Install LLVM and Clang" uses: "KyleMayes/install-llvm-action@v2" with: version: "17.0" - - name: "Cache build artifacts" - uses: "Swatinem/rust-cache@v2" - - name: "Build and test" run: | - tree $LLVM_PATH cargo clippy cargo test env: