@@ -15,111 +15,46 @@ env:
15
15
CARGO_TERM_COLOR : always
16
16
17
17
jobs :
18
- # ## Regular Build #########################
19
- build_msrv :
20
- name : build (msrv)
21
- uses : ./.github/workflows/_build-rust.yml
22
- with :
23
- rust-version : 1.56.1
24
- do-style-check : false
25
-
26
- build_stable :
27
- name : build (stable)
28
- uses : ./.github/workflows/_build-rust.yml
29
- with :
30
- rust-version : stable
31
- do-style-check : false
32
-
33
- build_nightly :
34
- name : build (nightly)
35
- uses : ./.github/workflows/_build-rust.yml
36
- with :
37
- rust-version : nightly
38
- do-style-check : false
39
- features : unstable
40
-
41
- # ## no-std Build #########################
42
- build_nostd_msrv :
43
- name : build no_std (msrv)
44
- needs : build_msrv
45
- uses : ./.github/workflows/_build-rust.yml
46
- with :
47
- rust-version : 1.56.1
48
- do-style-check : false
49
- rust-target : thumbv7em-none-eabihf
50
-
51
- build_nostd_stable :
52
- name : build no_std (stable)
53
- needs : build_stable
54
- uses : ./.github/workflows/_build-rust.yml
55
- with :
56
- rust-version : stable
57
- do-style-check : false
58
- rust-target : thumbv7em-none-eabihf
59
-
60
- # We perform one single run also in Windows. This should be sufficient to
61
- # check that devs can also use this on Windows.
62
- build_nostd_stable_windows :
63
- name : build no_std (stable) [Windows]
64
- uses : ./.github/workflows/_build-rust.yml
65
- with :
66
- runs-on : windows-latest
67
- # Quirk for the Windows powershell and its handling of empty arguments.
68
- features : >
69
- '""'
70
- rust-version : stable
71
- do-style-check : false
72
- rust-target : thumbv7em-none-eabihf
73
-
74
- build_nostd_nightly :
75
- name : build no_std (nightly)
76
- needs : build_nightly
77
- uses : ./.github/workflows/_build-rust.yml
78
- with :
79
- rust-version : nightly
80
- do-style-check : false
81
- rust-target : thumbv7em-none-eabihf
82
- features : unstable
83
-
84
- # ## Style Checks + Doc #####################
85
- style_msrv :
86
- name : style (msrv)
87
- needs : build_msrv
88
- uses : ./.github/workflows/_build-rust.yml
89
- with :
90
- rust-version : 1.56.1
91
- do-style-check : true
92
- do-test : false
93
-
94
- style_stable :
95
- name : style (stable)
96
- needs : build_stable
97
- uses : ./.github/workflows/_build-rust.yml
98
- with :
99
- rust-version : stable
100
- do-style-check : true
101
- do-test : false
102
-
103
- style_nightly :
104
- name : style (nightly)
105
- needs : build_nightly
106
- uses : ./.github/workflows/_build-rust.yml
107
- with :
108
- rust-version : nightly
109
- do-style-check : true
110
- do-test : false
111
- features : unstable
112
-
113
- multiboot2_integrationtest :
114
- name : multiboot2 integrationtest
115
- needs :
116
- - build_nightly
117
- - build_nostd_nightly
118
- runs-on : ubuntu-latest
18
+ rust-yo :
19
+ runs-on : ${{ matrix.runs-on }}
20
+ strategy :
21
+ matrix :
22
+ runs-on :
23
+ - windows-latest
24
+ - ubuntu-latest
25
+ rust-version :
26
+ - 1.56.1
27
+ - stable
28
+ - nightly
29
+ cargo-command :
30
+ - fmt --all -- --check
31
+ - check --all-targets
32
+ - build --all-targets
33
+ - test
34
+ rust-target :
35
+ - x86_64-unknown-linux-gnu
119
36
steps :
120
37
- name : Check out
121
38
uses : actions/checkout@v3
122
- - uses : cachix/install-nix-action@v19
123
- - run : integration-test/run_multiboot2_integrationtest.sh
124
-
125
- # multiboot2-header_integrationtest:
39
+ - name : Install Rust toolchain
40
+ uses : actions-rs/toolchain@v1
41
+ with :
42
+ profile : minimal
43
+ toolchain : ${{ matrix.rust-version }}
44
+ override : true
45
+ components : clippy, rustfmt
46
+ target : ${{ matrix.rust-target }}
47
+ - name : Set up cargo cache
48
+ uses : actions/cache@v3
49
+ continue-on-error : false
50
+ with :
51
+ path : |
52
+ ~/.cargo/bin/
53
+ ~/.cargo/registry/index/
54
+ ~/.cargo/registry/cache/
55
+ ~/.cargo/git/db/
56
+ target/
57
+ # Hash over Cargo.toml and Cargo.lock, as this might be copied to
58
+ # projects that do not have a Cargo.lock in their repository tree!
59
+ key : ${{ runner.os }}-rust-${{ matrix.rust-version }}-cargo-${{ hashFiles('**/Cargo.toml', '**/Cargo.lock') }}
60
+ - run : cargo ${{ matrix.cargo-command }}
0 commit comments