File tree 2 files changed +16
-4
lines changed
2 files changed +16
-4
lines changed Original file line number Diff line number Diff line change 57
57
uses : actions/cache@v2
58
58
with :
59
59
path : target
60
- key : ${{ github.base_ref }}-${{ github.head_ref }}-${{ matrix.target }}-cargo-target-dir-${{ steps.cargo-target-cache.outputs.rust_hash }}-${{ hashFiles('**/Cargo.lock') }}
61
- restore-keys : ${{ github.base_ref }}-${{ matrix.target }}-cargo-target-dir-${{ steps.cargo-target-cache.outputs.rust_hash }}-${{ hashFiles('**/Cargo.lock') }}
60
+ key : ${{ github.base_ref }}-${{ github.head_ref }}-${{ matrix.target }}-cargo-target-dir-${{ steps.cargo-target-cache.outputs.rust_hash }}-${{ hashFiles('**/Cargo.lock') }}-3
61
+ restore-keys : ${{ github.base_ref }}-${{ matrix.target }}-cargo-target-dir-${{ steps.cargo-target-cache.outputs.rust_hash }}-${{ hashFiles('**/Cargo.lock') }}-3
62
62
- name : Install Rustup using ./rustup-init.sh
63
63
run : |
64
64
sh ./rustup-init.sh --default-toolchain=none --profile=minimal -y
92
92
run : |
93
93
cargo install cargo-cache --no-default-features --features ci-autoclean
94
94
cargo-cache
95
+ - name : Flush cache
96
+ # This is a workaround for a bug with GitHub Actions Cache that causes
97
+ # corrupt cache entries (particularly in the target directory). See
98
+ # https://github.com/actions/cache/issues/403 and
99
+ # https://github.com/rust-lang/cargo/issues/8603.
100
+ run : sudo /usr/sbin/purge
Original file line number Diff line number Diff line change 57
57
uses : actions/cache@v2
58
58
with :
59
59
path : target
60
- key : ${{ github.base_ref }}-${{ github.head_ref }}-${{ matrix.target }}-cargo-target-dir-${{ steps.cargo-target-cache.outputs.rust_hash }}-${{ hashFiles('**/Cargo.lock') }}
61
- restore-keys : ${{ github.base_ref }}-${{ matrix.target }}-cargo-target-dir-${{ steps.cargo-target-cache.outputs.rust_hash }}-${{ hashFiles('**/Cargo.lock') }}
60
+ key : ${{ github.base_ref }}-${{ github.head_ref }}-${{ matrix.target }}-cargo-target-dir-${{ steps.cargo-target-cache.outputs.rust_hash }}-${{ hashFiles('**/Cargo.lock') }}-3
61
+ restore-keys : ${{ github.base_ref }}-${{ matrix.target }}-cargo-target-dir-${{ steps.cargo-target-cache.outputs.rust_hash }}-${{ hashFiles('**/Cargo.lock') }}-3
62
62
- name : Install Rustup using ./rustup-init.sh
63
63
run : |
64
64
sh ./rustup-init.sh --default-toolchain=none --profile=minimal -y
92
92
run : |
93
93
cargo install cargo-cache --no-default-features --features ci-autoclean
94
94
cargo-cache
95
+ - name : Flush cache
96
+ # This is a workaround for a bug with GitHub Actions Cache that causes
97
+ # corrupt cache entries (particularly in the target directory). See
98
+ # https://github.com/actions/cache/issues/403 and
99
+ # https://github.com/rust-lang/cargo/issues/8603.
100
+ run : sudo /usr/sbin/purge
You can’t perform that action at this time.
0 commit comments