@@ -3,6 +3,17 @@ on: [push, pull_request]
3
3
name : Continuous Integration
4
4
5
5
jobs :
6
+ Prepare :
7
+ runs-on : ubuntu-24.04
8
+ outputs :
9
+ nightly_version : ${{ steps.read_toolchain.outputs.nightly_version }}
10
+ steps :
11
+ - name : " Checkout repo"
12
+ uses : actions/checkout@v4
13
+ - name : " Read nightly version"
14
+ id : read_toolchain
15
+ run : echo "nightly_version=$(cat nightly-version)" >> $GITHUB_OUTPUT
16
+
6
17
Stable :
7
18
name : Test - stable toolchain
8
19
runs-on : ubuntu-latest
@@ -38,14 +49,17 @@ jobs:
38
49
39
50
Nightly :
40
51
name : Test - nightly toolchain
52
+ needs : Prepare
41
53
runs-on : ubuntu-latest
42
54
strategy :
43
55
fail-fast : false
44
56
steps :
45
57
- name : Checkout Crate
46
58
uses : actions/checkout@v3
47
59
- name : Checkout Toolchain
48
- uses : dtolnay/rust-toolchain@nightly
60
+ uses : dtolnay/rust-toolchain@v1
61
+ with :
62
+ toolchain : ${{ needs.Prepare.outputs.nightly_version }}
49
63
- name : Running test script
50
64
env :
51
65
DO_DOCSRS : true
70
84
71
85
EmbeddedWithAlloc :
72
86
name : no_std with alloc
87
+ needs : Prepare
73
88
runs-on : ubuntu-latest
74
89
strategy :
75
90
fail-fast : false
79
94
- name : Set up QEMU
80
95
run : sudo apt update && sudo apt install -y qemu-system-arm gcc-arm-none-eabi
81
96
- name : Checkout Toolchain
82
- uses : dtolnay/rust-toolchain@nightly
97
+ uses : dtolnay/rust-toolchain@v1
83
98
with :
84
99
targets : thumbv7m-none-eabi
100
+ toolchain : ${{ needs.Prepare.outputs.nightly_version }}
85
101
- name : Run
86
102
env :
87
103
RUSTFLAGS : " -C link-arg=-Tlink.x"
90
106
91
107
EmbeddedNoAlloc :
92
108
name : no_std no alloc
109
+ needs : Prepare
93
110
runs-on : ubuntu-latest
94
111
strategy :
95
112
fail-fast : false
@@ -99,9 +116,10 @@ jobs:
99
116
- name : Set up QEMU
100
117
run : sudo apt update && sudo apt install -y qemu-system-arm gcc-arm-none-eabi
101
118
- name : Checkout Toolchain
102
- uses : dtolnay/rust-toolchain@nightly
119
+ uses : dtolnay/rust-toolchain@v1
103
120
with :
104
121
targets : thumbv7m-none-eabi
122
+ toolchain : ${{ needs.Prepare.outputs.nightly_version }}
105
123
- name : Run
106
124
env :
107
125
RUSTFLAGS : " -C link-arg=-Tlink.x"
0 commit comments