Skip to content

Commit abba9bc

Browse files
authored
Update ci.yaml
fixes the ci
1 parent 2e1ade0 commit abba9bc

File tree

1 file changed

+19
-15
lines changed

1 file changed

+19
-15
lines changed

.github/workflows/ci.yaml

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,37 +7,29 @@ on:
77

88
jobs:
99
build:
10-
runs-on: ubuntu-20.04
10+
runs-on: ubuntu-latest
1111

1212
continue-on-error: ${{ matrix.experimental || false }}
1313

1414
strategy:
1515
matrix:
1616
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.
1919
include:
20-
- rust: nightly
20+
- rust: nightly-2022-08-12
2121
experimental: true
2222

2323
steps:
2424
- uses: actions/checkout@v2
2525

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
3426

3527
- name: Install Python dependencies
3628
run: |
3729
pip3 install --user python-dateutil linkchecker
3830
3931
- name: Cache installed binaries
40-
uses: actions/cache@v1
32+
uses: actions/cache@v4
4133
id: cache-bin
4234
with:
4335
path: ~/cache-bin
@@ -50,13 +42,25 @@ jobs:
5042
crate: mdbook
5143
version: latest
5244

45+
5346
- name: Install cargo-binutils
5447
if: steps.cache-bin.outputs.cache-hit != 'true'
5548
uses: actions-rs/install@v0.1
5649
with:
5750
crate: cargo-binutils
5851
version: latest
5952

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+
6064
- name: Install arm-none-eabi-gcc and qemu
6165
if: steps.cache-bin.outputs.cache-hit != 'true'
6266
run: |
@@ -84,7 +88,7 @@ jobs:
8488
RUST_VERSION: ${{ matrix.rust }}
8589

8690
deploy:
87-
runs-on: ubuntu-20.04
91+
runs-on: ubuntu-latest
8892

8993
needs: [build]
9094

@@ -94,7 +98,7 @@ jobs:
9498
- uses: actions/checkout@v2
9599

96100
- name: Cache installed binaries
97-
uses: actions/cache@v1
101+
uses: actions/cache@v4
98102
id: cache-bin
99103
with:
100104
path: ~/cache-bin

0 commit comments

Comments
 (0)