Skip to content

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 85a0c20 commit 3d8ef37
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,12 @@ 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.
rs-benchmark-tests:
uses: lf-lang/benchmarks-lingua-franca/.github/workflows/benchmark-tests.yml@ci-rust-fix
uses: lf-lang/benchmarks-lingua-franca/.github/workflows/benchmark-tests.yml@main
with:
target: 'Rust'
needs: cancel
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 3d8ef37

Please sign in to comment.