Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit fd9c374

Browse files
committedAug 22, 2022
CI: Delete rustup cache in case of any failures
This works around https://github.com/ATiltedTree/setup-rust/issues/157 and rust-lang/rustup#2417
1 parent 0d2f64e commit fd9c374

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed
 

‎.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ jobs:
8888

8989
# Run the Rust integration tests.
9090
rs-tests:
91-
uses: lf-lang/lingua-franca/.github/workflows/rs-tests.yml@master
91+
uses: lf-lang/lingua-franca/.github/workflows/rs-tests.yml@ci-rust-fix
9292
needs: cancel
9393

9494
# Run the Rust benchmark tests.

‎.github/workflows/rs-tests.yml

+11
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,17 @@ jobs:
2727
- name: Prepare build environment
2828
uses: ./.github/actions/prepare-build-env
2929
- name: Setup Rust
30+
id: rustup
31+
uses: ATiltedTree/setup-rust@v1
32+
with:
33+
rust-version: ${{ matrix.rust }}
34+
components: clippy
35+
continue-on-error: true
36+
- name: Delete rustup cache
37+
run: rm -rf ~/.rustup
38+
if: ${{ steps.rustup.outcome }} != "success"
39+
- name: Setup Rust (again)
40+
if: ${{ steps.rustup.outcome }} != "success"
3041
uses: ATiltedTree/setup-rust@v1
3142
with:
3243
rust-version: ${{ matrix.rust }}

0 commit comments

Comments
 (0)
Please sign in to comment.