From fd9c374e448d709692419fb75f855845d3dcc2ab Mon Sep 17 00:00:00 2001 From: Christian Menard Date: Mon, 22 Aug 2022 12:06:33 +0200 Subject: [PATCH] CI: Delete rustup cache in case of any failures This works around https://github.com/ATiltedTree/setup-rust/issues/157 and https://github.com/rust-lang/rustup/issues/2417 --- .github/workflows/ci.yml | 2 +- .github/workflows/rs-tests.yml | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2d9ae662d4..08024f174a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -88,7 +88,7 @@ jobs: # Run the Rust integration tests. rs-tests: - uses: lf-lang/lingua-franca/.github/workflows/rs-tests.yml@master + uses: lf-lang/lingua-franca/.github/workflows/rs-tests.yml@ci-rust-fix needs: cancel # Run the Rust benchmark tests. diff --git a/.github/workflows/rs-tests.yml b/.github/workflows/rs-tests.yml index e29e295571..c54810b418 100644 --- a/.github/workflows/rs-tests.yml +++ b/.github/workflows/rs-tests.yml @@ -27,6 +27,17 @@ jobs: - name: Prepare build environment uses: ./.github/actions/prepare-build-env - name: Setup Rust + id: rustup + uses: ATiltedTree/setup-rust@v1 + with: + rust-version: ${{ matrix.rust }} + components: clippy + continue-on-error: true + - name: Delete rustup cache + run: rm -rf ~/.rustup + if: ${{ steps.rustup.outcome }} != "success" + - name: Setup Rust (again) + if: ${{ steps.rustup.outcome }} != "success" uses: ATiltedTree/setup-rust@v1 with: rust-version: ${{ matrix.rust }}