Skip to content
This repository has been archived by the owner on Sep 22, 2024. It is now read-only.

Commit

Permalink
CI: Delete rustup cache in case of any failures
Browse files Browse the repository at this point in the history
  • Loading branch information
cmnrd committed Aug 22, 2022
1 parent 56727ab commit 2868103
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/rs-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit 2868103

Please sign in to comment.