7
7
8
8
jobs :
9
9
build :
10
- runs-on : ubuntu-20.04
10
+ runs-on : ubuntu-latest
11
11
12
12
continue-on-error : ${{ matrix.experimental || false }}
13
13
14
14
strategy :
15
15
matrix :
16
16
rust :
17
- - 1.62.0
18
- - nightly
17
+ - 1.63.0
18
+ - nightly-2022-08-12 # Since Rust 1.63.0 came out Aug 11 2022, we use nightly from the day after.
19
19
include :
20
- - rust : nightly
20
+ - rust : nightly-2022-08-12
21
21
experimental : true
22
22
23
23
steps :
24
24
- uses : actions/checkout@v2
25
25
26
- - name : Install Rust
27
- uses : actions-rs/toolchain@v1
28
- with :
29
- profile : minimal
30
- toolchain : ${{ matrix.rust }}
31
- override : true
32
- components : rustfmt, clippy, llvm-tools-preview
33
- target : thumbv7m-none-eabi
34
26
35
27
- name : Install Python dependencies
36
28
run : |
37
29
pip3 install --user python-dateutil linkchecker
38
30
39
31
- name : Cache installed binaries
40
- uses : actions/cache@v1
32
+ uses : actions/cache@v4
41
33
id : cache-bin
42
34
with :
43
35
path : ~/cache-bin
@@ -50,13 +42,25 @@ jobs:
50
42
crate : mdbook
51
43
version : latest
52
44
45
+
53
46
- name : Install cargo-binutils
54
47
if : steps.cache-bin.outputs.cache-hit != 'true'
55
48
uses : actions-rs/install@v0.1
56
49
with :
57
50
crate : cargo-binutils
58
51
version : latest
59
52
53
+ # Moved until after installing mdbook and cargo-binutils because otherwise installing them fails
54
+ # (note all GitHub runners come with the latest stable version of Rust pre-installed, and it is that version we want to install these).
55
+ - name : Install Rust
56
+ uses : actions-rs/toolchain@v1
57
+ with :
58
+ profile : minimal
59
+ toolchain : ${{ matrix.rust }}
60
+ override : true
61
+ components : rustfmt, clippy, llvm-tools-preview
62
+ target : thumbv7m-none-eabi
63
+
60
64
- name : Install arm-none-eabi-gcc and qemu
61
65
if : steps.cache-bin.outputs.cache-hit != 'true'
62
66
run : |
84
88
RUST_VERSION : ${{ matrix.rust }}
85
89
86
90
deploy :
87
- runs-on : ubuntu-20.04
91
+ runs-on : ubuntu-latest
88
92
89
93
needs : [build]
90
94
94
98
- uses : actions/checkout@v2
95
99
96
100
- name : Cache installed binaries
97
- uses : actions/cache@v1
101
+ uses : actions/cache@v4
98
102
id : cache-bin
99
103
with :
100
104
path : ~/cache-bin
0 commit comments