File tree 2 files changed +33
-18
lines changed
2 files changed +33
-18
lines changed Original file line number Diff line number Diff line change 52
52
~/.cargo/registry/cache/
53
53
~/.cargo/git/db/
54
54
target/
55
- key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
56
- restore-keys : ${{ runner.os }}-cargo-
55
+ # We do not have a Cargo.lock here, so I hash Cargo.toml
56
+ key : ${{ runner.os }}-rust-${{ inputs.rust-version }}-cargo-${{ hashFiles('**/Cargo.toml') }}
57
+ restore-keys : ${{ runner.os }}-cargo-${{ inputs.rust-version }}
57
58
- run : cargo version
58
59
- name : Code Formatting
59
60
if : ${{ inputs.do-style-check }}
Original file line number Diff line number Diff line change 15
15
CARGO_TERM_COLOR : always
16
16
17
17
jobs :
18
- build_multiboot2_msrv :
19
- name : " build (msrv)"
18
+ build_msrv :
19
+ name : build (msrv)
20
20
uses : ./.github/workflows/_build-rust.yml
21
21
with :
22
22
rust-version : 1.56.1
23
23
do-style-check : false
24
24
25
- build_multiboot2_stable :
26
- name : " build (stable)"
25
+ build_stable :
26
+ name : build (stable)
27
27
uses : ./.github/workflows/_build-rust.yml
28
28
with :
29
29
rust-version : stable
30
30
do-style-check : false
31
31
32
- build_multiboot2_nightly :
33
- name : " build (nightly)"
32
+ build_nightly :
33
+ name : build (nightly)
34
34
uses : ./.github/workflows/_build-rust.yml
35
35
with :
36
36
rust-version : nightly
37
37
do-style-check : false
38
38
39
- build_nostd_multiboot2_msrv :
40
- name : " build no_std (msrv)"
39
+ build_nostd_msrv :
40
+ name : build no_std (msrv)
41
+ needs : build_msrv
41
42
uses : ./.github/workflows/_build-rust.yml
42
43
with :
43
44
rust-version : 1.56.1
44
45
do-style-check : false
45
46
rust-target : thumbv7em-none-eabihf
46
47
47
- build_nostd_multiboot2_stable :
48
- name : " build no_std (stable)"
48
+ build_nostd_stable :
49
+ name : build no_std (stable)
50
+ needs : build_stable
49
51
uses : ./.github/workflows/_build-rust.yml
50
52
with :
51
53
rust-version : stable
52
54
do-style-check : false
53
55
rust-target : thumbv7em-none-eabihf
54
56
55
- build_nostd_multiboot2_nightly :
56
- name : " build no_std (nightly)"
57
+ build_nostd_nightly :
58
+ name : build no_std (nightly)
59
+ needs : build_nightly
57
60
uses : ./.github/workflows/_build-rust.yml
58
61
with :
59
62
rust-version : nightly
60
63
do-style-check : false
61
64
rust-target : thumbv7em-none-eabihf
62
65
63
- style_multiboot2_msrv :
64
- name : " style (msrv)"
66
+ style_msrv :
67
+ name : style (msrv)
68
+ needs : build_msrv
65
69
uses : ./.github/workflows/_build-rust.yml
66
70
with :
67
71
rust-version : 1.56.1
68
72
do-style-check : true
69
73
do-test : false
70
74
71
- style_multiboot2_stable :
72
- name : " style (stable)"
75
+ style_stable :
76
+ name : style (stable)
77
+ needs : build_stable
73
78
uses : ./.github/workflows/_build-rust.yml
74
79
with :
75
80
rust-version : stable
76
81
do-style-check : true
77
82
do-test : false
83
+
84
+ style_nightly :
85
+ name : style (nightly)
86
+ needs : build_nightly
87
+ uses : ./.github/workflows/_build-rust.yml
88
+ with :
89
+ rust-version : nightly
90
+ do-style-check : true
91
+ do-test : false
You can’t perform that action at this time.
0 commit comments