File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change 29
29
fail-fast : false # Even if one job fails we still want to see the other ones
30
30
matrix :
31
31
# 1.63 is MSRV. Keep in sync with Cargo.toml
32
+ # NOTE: Currently need to pin a specific `time` version for MSRV
32
33
rust : [1.63, stable, nightly]
33
34
# NOTE: Features to test must be specified manually. They are applied to all versions separately.
34
- #
35
+ #
35
36
# This has the advantage of being more flexible and thorough
36
37
# This has the disadvantage of being more verbose
37
38
#
@@ -53,10 +54,14 @@ jobs:
53
54
key : ${{ runner.os }}-cargo-${{ matrix.rust }}
54
55
restore-keys : |
55
56
${{ 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
56
63
# NOTE: We only run `cargo test`. No need for a separate `cargo check`
57
64
- name : Test
58
65
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 }}"
62
67
You can’t perform that action at this time.
0 commit comments