Skip to content

Commit 4d3ea90

Browse files
committed
ci: Cache on failure
Helpful for old rust versions circa 1.61, which use the legacy index.
1 parent 81e3e03 commit 4d3ea90

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/test.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,14 @@ jobs:
5858
toolchain: ${{ matrix.rust }}
5959
- uses: Swatinem/rust-cache@v2
6060
if: ${{ matrix.rust != 'nightly' }} # ineffective due to version key
61+
with:
62+
# Helpful for Rust versions that use old index
63+
cache-on-failure: true
64+
# Pin a time version with a compatible MSRV
65+
- name: Pin time version
66+
if: ${{ matrix.rust != 'nightly' && matrix.rust != 'stable' }}
67+
run: |
68+
cargo update --package time --precise 0.3.16
6169
- name: Check
6270
run: |
6371
cargo check --all-targets --verbose --no-default-features --features "${{ matrix.features }}"

0 commit comments

Comments
 (0)