27
27
build_channels_linux :
28
28
name : Build Channels Linux
29
29
runs-on : ubuntu-22.04
30
- env :
31
- OS : linux
32
30
strategy :
33
31
fail-fast : true
34
32
max-parallel : 5
@@ -38,18 +36,19 @@ jobs:
38
36
- beta
39
37
- nightly
40
38
- 1.63.0
39
+ env :
40
+ OS : linux
41
+ TOOLCHAIN : ${{ matrix.toolchain }}
41
42
steps :
42
43
- uses : actions/checkout@v4
43
44
- name : Setup Rust toolchain
44
- run : TOOLCHAIN=${{ matrix.toolchain }} ./ci/install-rust.sh
45
+ run : ./ci/install-rust.sh
45
46
- name : Execute build.sh
46
- run : TOOLCHAIN=${{ matrix.toolchain }} ./ci/build.sh
47
+ run : ./ci/build.sh
47
48
48
49
build_channels_macos :
49
50
name : Build Channels macOS
50
51
needs : macos
51
- env :
52
- OS : macos
53
52
strategy :
54
53
fail-fast : true
55
54
max-parallel : 4
@@ -60,31 +59,35 @@ jobs:
60
59
- { toolchain: nightly, os: macos-14 }
61
60
- { toolchain: 1.63.0, os: macos-14 }
62
61
runs-on : ${{ matrix.target.os }}
62
+ env :
63
+ OS : macos
64
+ TOOLCHAIN : ${{ matrix.toolchain }}
63
65
steps :
64
66
- uses : actions/checkout@v4
65
67
- name : Setup Rust toolchain
66
- run : TOOLCHAIN=${{ matrix.target.toolchain }} ./ci/install-rust.sh
68
+ run : ./ci/install-rust.sh
67
69
- name : Execute build.sh
68
- run : TOOLCHAIN=${{ matrix.target.toolchain }} ./ci/build.sh
70
+ run : ./ci/build.sh
69
71
70
72
build_channels_windows :
71
73
name : Build Channels Windows
72
74
runs-on : windows-2022
73
- env :
74
- OS : windows
75
75
strategy :
76
76
fail-fast : true
77
77
matrix :
78
78
toolchain :
79
79
- 1.63.0
80
80
- stable
81
+ env :
82
+ OS : windows
83
+ TOOLCHAIN : ${{ matrix.toolchain }}
81
84
steps :
82
85
- uses : actions/checkout@v4
83
86
- name : Self-update rustup
84
87
run : rustup self update
85
88
shell : bash
86
89
- name : Execute build.sh
87
- run : TOOLCHAIN=${{ matrix.toolchain }} ./ci/build.sh
90
+ run : ./ci/build.sh
88
91
shell : bash
89
92
90
93
macos :
@@ -95,18 +98,18 @@ jobs:
95
98
matrix :
96
99
target :
97
100
- aarch64-apple-darwin
101
+ env :
102
+ TARGET : ${{ matrix.target }}
98
103
steps :
99
104
- uses : actions/checkout@v4
100
105
- name : Setup Rust toolchain
101
- run : TARGET=${{ matrix.target }} ./ci/install-rust.sh
106
+ run : ./ci/install-rust.sh
102
107
- name : Execute run.sh
103
108
run : ./ci/run.sh ${{ matrix.target }}
104
109
105
110
windows :
106
111
name : Windows
107
112
runs-on : windows-2022
108
- env :
109
- OS : windows
110
113
strategy :
111
114
fail-fast : true
112
115
matrix :
@@ -122,13 +125,16 @@ jobs:
122
125
# ARCH_BITS: 32
123
126
# ARCH: i686
124
127
- target : i686-pc-windows-msvc
128
+ env :
129
+ OS : windows
130
+ TARGET : ${{ matrix.target }}
125
131
steps :
126
132
- uses : actions/checkout@v4
127
133
- name : Self-update rustup
128
134
run : rustup self update
129
135
shell : bash
130
136
- name : Setup Rust toolchain
131
- run : TARGET=${{ matrix.target }} ./ci/install-rust.sh
137
+ run : ./ci/install-rust.sh
132
138
shell : bash
133
139
- name : Execute run.sh
134
140
run : ./ci/run.sh ${{ matrix.target }}
@@ -144,10 +150,12 @@ jobs:
144
150
target :
145
151
- i686-unknown-linux-gnu
146
152
- x86_64-unknown-linux-gnu
153
+ env :
154
+ TARGET : ${{ matrix.target }}
147
155
steps :
148
156
- uses : actions/checkout@v4
149
157
- name : Setup Rust toolchain
150
- run : TARGET=${{ matrix.target }} ./ci/install-rust.sh
158
+ run : ./ci/install-rust.sh
151
159
- name : Execute run-docker.sh
152
160
run : ./ci/run-docker.sh ${{ matrix.target }}
153
161
@@ -186,10 +194,12 @@ jobs:
186
194
# FIXME: It seems some items in `src/unix/mod.rs`
187
195
# aren't defined on redox actually.
188
196
# - x86_64-unknown-redox
197
+ env :
198
+ TARGET : ${{ matrix.target }}
189
199
steps :
190
200
- uses : actions/checkout@v4
191
201
- name : Setup Rust toolchain
192
- run : TARGET=${{ matrix.target }} ./ci/install-rust.sh
202
+ run : ./ci/install-rust.sh
193
203
- name : Execute run-docker.sh
194
204
run : ./ci/run-docker.sh ${{ matrix.target }}
195
205
@@ -223,10 +233,12 @@ jobs:
223
233
check_cfg :
224
234
name : " Check #[cfg]s"
225
235
runs-on : ubuntu-22.04
236
+ env :
237
+ TOOLCHAIN : nightly
226
238
steps :
227
239
- uses : actions/checkout@v4
228
240
- name : Setup Rust toolchain
229
- run : TOOLCHAIN=nightly ./ci/install-rust.sh
241
+ run : ./ci/install-rust.sh
230
242
- name : Build with check-cfg
231
243
run : LIBC_CHECK_CFG=1 cargo build -Z unstable-options -Z check-cfg
232
244
0 commit comments