28
28
build_channels_linux :
29
29
name : Build Channels Linux
30
30
runs-on : ubuntu-22.04
31
- env :
32
- OS : linux
33
31
strategy :
34
32
fail-fast : true
35
33
max-parallel : 5
@@ -39,18 +37,19 @@ jobs:
39
37
- beta
40
38
- nightly
41
39
- 1.63.0
40
+ env :
41
+ OS : linux
42
+ TOOLCHAIN : ${{ matrix.toolchain }}
42
43
steps :
43
44
- uses : actions/checkout@v4
44
45
- name : Setup Rust toolchain
45
- run : TOOLCHAIN=${{ matrix.toolchain }} ./ci/install-rust.sh
46
+ run : ./ci/install-rust.sh
46
47
- name : Execute build.sh
47
- run : TOOLCHAIN=${{ matrix.toolchain }} ./ci/build.sh
48
+ run : ./ci/build.sh
48
49
49
50
build_channels_macos :
50
51
name : Build Channels macOS
51
52
needs : macos
52
- env :
53
- OS : macos
54
53
strategy :
55
54
fail-fast : true
56
55
max-parallel : 4
@@ -61,31 +60,35 @@ jobs:
61
60
- { toolchain: nightly, os: macos-14 }
62
61
- { toolchain: 1.63.0, os: macos-14 }
63
62
runs-on : ${{ matrix.target.os }}
63
+ env :
64
+ OS : macos
65
+ TOOLCHAIN : ${{ matrix.toolchain }}
64
66
steps :
65
67
- uses : actions/checkout@v4
66
68
- name : Setup Rust toolchain
67
- run : TOOLCHAIN=${{ matrix.target.toolchain }} ./ci/install-rust.sh
69
+ run : ./ci/install-rust.sh
68
70
- name : Execute build.sh
69
- run : TOOLCHAIN=${{ matrix.target.toolchain }} ./ci/build.sh
71
+ run : ./ci/build.sh
70
72
71
73
build_channels_windows :
72
74
name : Build Channels Windows
73
75
runs-on : windows-2022
74
- env :
75
- OS : windows
76
76
strategy :
77
77
fail-fast : true
78
78
matrix :
79
79
toolchain :
80
80
- 1.63.0
81
81
- stable
82
+ env :
83
+ OS : windows
84
+ TOOLCHAIN : ${{ matrix.toolchain }}
82
85
steps :
83
86
- uses : actions/checkout@v4
84
87
- name : Self-update rustup
85
88
run : rustup self update
86
89
shell : bash
87
90
- name : Execute build.sh
88
- run : TOOLCHAIN=${{ matrix.toolchain }} ./ci/build.sh
91
+ run : ./ci/build.sh
89
92
shell : bash
90
93
91
94
macos :
@@ -96,18 +99,18 @@ jobs:
96
99
matrix :
97
100
target :
98
101
- aarch64-apple-darwin
102
+ env :
103
+ TARGET : ${{ matrix.target }}
99
104
steps :
100
105
- uses : actions/checkout@v4
101
106
- name : Setup Rust toolchain
102
- run : TARGET=${{ matrix.target }} ./ci/install-rust.sh
107
+ run : ./ci/install-rust.sh
103
108
- name : Execute run.sh
104
109
run : ./ci/run.sh ${{ matrix.target }}
105
110
106
111
windows :
107
112
name : Windows
108
113
runs-on : windows-2022
109
- env :
110
- OS : windows
111
114
strategy :
112
115
fail-fast : true
113
116
matrix :
@@ -123,13 +126,16 @@ jobs:
123
126
# ARCH_BITS: 32
124
127
# ARCH: i686
125
128
- target : i686-pc-windows-msvc
129
+ env :
130
+ OS : windows
131
+ TARGET : ${{ matrix.target }}
126
132
steps :
127
133
- uses : actions/checkout@v4
128
134
- name : Self-update rustup
129
135
run : rustup self update
130
136
shell : bash
131
137
- name : Setup Rust toolchain
132
- run : TARGET=${{ matrix.target }} ./ci/install-rust.sh
138
+ run : ./ci/install-rust.sh
133
139
shell : bash
134
140
- name : Execute run.sh
135
141
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