File tree 2 files changed +49
-82
lines changed 2 files changed +49
-82
lines changed Original file line number Diff line number Diff line change 21
21
CLICOLOR : ' 1'
22
22
23
23
jobs :
24
+ msrv :
25
+ name : cargo check MSRV
26
+
27
+ strategy :
28
+ matrix :
29
+ os :
30
+ - windows-2022
31
+ - ubuntu-latest
32
+
33
+ runs-on : ${{ matrix.os }}
34
+
35
+ defaults :
36
+ run :
37
+ shell : bash # Use `bash` even in the Windows job.
38
+
39
+ steps :
40
+ - uses : actions/checkout@v4
41
+ - uses : extractions/setup-just@v3
42
+ - name : Read the MSRV
43
+ run : |
44
+ msrv="$(just msrv)"
45
+ tee -a "$GITHUB_ENV" <<<"MSRV=$msrv"
46
+ - name : Set up MSRV and nightly toolchains
47
+ run : |
48
+ rustup toolchain install "$MSRV" nightly --profile minimal --no-self-update
49
+ - name : Downgrade locked dependencies to lowest allowed versions
50
+ run : |
51
+ # TODO(msrv): Use `cargo update --minimal-versions` when `--minimal-versions` is available.
52
+ cargo +nightly update -Zminimal-versions
53
+ - name : Run some `cargo build` commands on `gix`
54
+ run : just check-rust-version "$MSRV"
55
+
56
+ msrv-badge :
57
+ name : Check MSRV badge
58
+
59
+ runs-on : ubuntu-latest
60
+
61
+ steps :
62
+ - uses : actions/checkout@v4
63
+ - uses : extractions/setup-just@v3
64
+ - name : Ensure we start out clean
65
+ run : git diff --exit-code
66
+ - name : Regenerate the MSRV badge
67
+ run : just msrv-badge
68
+ - name : Check for changes
69
+ run : git diff --exit-code
70
+
24
71
pure-rust-build :
25
72
runs-on : ubuntu-latest
26
73
@@ -492,6 +539,8 @@ jobs:
492
539
name : Tests pass
493
540
494
541
needs :
542
+ - msrv
543
+ - msrv-badge
495
544
- pure-rust-build
496
545
- test
497
546
- test-journey
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments