Skip to content

Commit 8e3e7da

Browse files
committed
ci: cache per rust version
1 parent 930fc48 commit 8e3e7da

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

.github/workflows/_build-rust.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ jobs:
5252
~/.cargo/registry/cache/
5353
~/.cargo/git/db/
5454
target/
55-
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
56-
restore-keys: ${{ runner.os }}-cargo-
55+
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}-${{ inputs.rust-version }}
56+
restore-keys: ${{ runner.os }}-cargo-${{ inputs.rust-version }}
5757
- run: cargo version
5858
- name: Code Formatting
5959
if: ${{ inputs.do-style-check }}

.github/workflows/rust.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,60 +16,60 @@ env:
1616

1717
jobs:
1818
build_multiboot2_msrv:
19-
name: "build (msrv)"
19+
name: build (msrv)
2020
uses: ./.github/workflows/_build-rust.yml
2121
with:
2222
rust-version: 1.56.1
2323
do-style-check: false
2424

2525
build_multiboot2_stable:
26-
name: "build (stable)"
26+
name: build (stable)
2727
uses: ./.github/workflows/_build-rust.yml
2828
with:
2929
rust-version: stable
3030
do-style-check: false
3131

3232
build_multiboot2_nightly:
33-
name: "build (nightly)"
33+
name: build (nightly)
3434
uses: ./.github/workflows/_build-rust.yml
3535
with:
3636
rust-version: nightly
3737
do-style-check: false
3838

3939
build_nostd_multiboot2_msrv:
40-
name: "build no_std (msrv)"
40+
name: build no_std (msrv)
4141
uses: ./.github/workflows/_build-rust.yml
4242
with:
4343
rust-version: 1.56.1
4444
do-style-check: false
4545
rust-target: thumbv7em-none-eabihf
4646

4747
build_nostd_multiboot2_stable:
48-
name: "build no_std (stable)"
48+
name: build no_std (stable)
4949
uses: ./.github/workflows/_build-rust.yml
5050
with:
5151
rust-version: stable
5252
do-style-check: false
5353
rust-target: thumbv7em-none-eabihf
5454

5555
build_nostd_multiboot2_nightly:
56-
name: "build no_std (nightly)"
56+
name: build no_std (nightly)
5757
uses: ./.github/workflows/_build-rust.yml
5858
with:
5959
rust-version: nightly
6060
do-style-check: false
6161
rust-target: thumbv7em-none-eabihf
6262

6363
style_multiboot2_msrv:
64-
name: "style (msrv)"
64+
name: style (msrv)
6565
uses: ./.github/workflows/_build-rust.yml
6666
with:
6767
rust-version: 1.56.1
6868
do-style-check: true
6969
do-test: false
7070

7171
style_multiboot2_stable:
72-
name: "style (stable)"
72+
name: style (stable)
7373
uses: ./.github/workflows/_build-rust.yml
7474
with:
7575
rust-version: stable

0 commit comments

Comments
 (0)