Skip to content

Commit 88aca95

Browse files
committed
ci: Only pin time version on MSRV
Fixes failures
1 parent 1ae33b5 commit 88aca95

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/test.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,10 @@ jobs:
2929
fail-fast: false # Even if one job fails we still want to see the other ones
3030
matrix:
3131
# 1.63 is MSRV. Keep in sync with Cargo.toml
32+
# NOTE: Currently need to pin a specific `time` version for MSRV
3233
rust: [1.63, stable, nightly]
3334
# NOTE: Features to test must be specified manually. They are applied to all versions separately.
34-
#
35+
#
3536
# This has the advantage of being more flexible and thorough
3637
# This has the disadvantage of being more verbose
3738
#
@@ -53,10 +54,14 @@ jobs:
5354
key: ${{ runner.os }}-cargo-${{ matrix.rust }}
5455
restore-keys: |
5556
${{ runner.os }}-cargo-
57+
- run: cargo update
58+
# Pin a time version with a compatible MSRV
59+
- name: Pin time version
60+
if: ${{ matrix.rust != 'nightly' && matrix.rust != 'stable' }}
61+
run: |
62+
cargo update --package time --precise 0.3.20
5663
# NOTE: We only run `cargo test`. No need for a separate `cargo check`
5764
- name: Test
5865
run: |
59-
# Pin a time version with a compatible MSRV
60-
cargo update --package time --precise 0.3.20
61-
cargo test --locked --verbose --features "${{ matrix.features }}"
66+
cargo test --all --verbose --locked --features "${{ matrix.features }}"
6267

0 commit comments

Comments
 (0)