@@ -2,13 +2,16 @@ name: full CI
2
2
3
3
on :
4
4
merge_group :
5
- push :
6
- branches : ['main', 'libc-0.2']
5
+ pull_request :
6
+ branches :
7
+ - libc-0.2
8
+ types :
9
+ - labeled
7
10
8
11
jobs :
9
12
docker_linux_tier1 :
13
+ if : github.event.label.name == 'libc-0.2-pre-merge-ci'
10
14
permissions :
11
- actions : write # to cancel workflows (rust-lang/simpleinfra/github-actions/cancel-outdated-builds)
12
15
contents : read # to fetch code (actions/checkout)
13
16
14
17
name : Docker Linux Tier1
@@ -21,18 +24,15 @@ jobs:
21
24
x86_64-unknown-linux-gnu,
22
25
]
23
26
steps :
24
- - uses : rust-lang/simpleinfra/github-actions/cancel-outdated-builds@HEAD
25
- with :
26
- github_token : " ${{ secrets.GITHUB_TOKEN }}"
27
27
- uses : actions/checkout@v4
28
28
- name : Setup Rust toolchain
29
29
run : TARGET=${{ matrix.target }} sh ./ci/install-rust.sh
30
30
- name : Execute run-docker.sh
31
31
run : LIBC_CI=1 sh ./ci/run-docker.sh ${{ matrix.target }}
32
32
33
33
macos :
34
+ if : github.event.label.name == 'libc-0.2-pre-merge-ci'
34
35
permissions :
35
- actions : write # to cancel workflows (rust-lang/simpleinfra/github-actions/cancel-outdated-builds)
36
36
contents : read # to fetch code (actions/checkout)
37
37
38
38
name : macOS
@@ -44,18 +44,15 @@ jobs:
44
44
x86_64-apple-darwin,
45
45
]
46
46
steps :
47
- - uses : rust-lang/simpleinfra/github-actions/cancel-outdated-builds@HEAD
48
- with :
49
- github_token : " ${{ secrets.GITHUB_TOKEN }}"
50
47
- uses : actions/checkout@v4
51
48
- name : Setup Rust toolchain
52
49
run : TARGET=${{ matrix.target }} sh ./ci/install-rust.sh
53
50
- name : Execute run.sh
54
51
run : LIBC_CI=1 sh ./ci/run.sh ${{ matrix.target }}
55
52
56
53
windows :
54
+ if : github.event.label.name == 'libc-0.2-pre-merge-ci'
57
55
permissions :
58
- actions : write # to cancel workflows (rust-lang/simpleinfra/github-actions/cancel-outdated-builds)
59
56
contents : read # to fetch code (actions/checkout)
60
57
61
58
name : Windows
77
74
ARCH : i686
78
75
- target : i686-pc-windows-msvc
79
76
steps :
80
- - uses : rust-lang/simpleinfra/github-actions/cancel-outdated-builds@HEAD
81
- with :
82
- github_token : " ${{ secrets.GITHUB_TOKEN }}"
83
77
- uses : actions/checkout@v4
84
78
- name : Self-update rustup
85
79
run : rustup self update
@@ -92,25 +86,22 @@ jobs:
92
86
shell : bash
93
87
94
88
style_check :
89
+ if : github.event.label.name == 'libc-0.2-pre-merge-ci'
95
90
permissions :
96
- actions : write # to cancel workflows (rust-lang/simpleinfra/github-actions/cancel-outdated-builds)
97
91
contents : read # to fetch code (actions/checkout)
98
92
99
93
name : Style check
100
94
runs-on : ubuntu-22.04
101
95
steps :
102
- - uses : rust-lang/simpleinfra/github-actions/cancel-outdated-builds@HEAD
103
- with :
104
- github_token : " ${{ secrets.GITHUB_TOKEN }}"
105
96
- uses : actions/checkout@v4
106
97
- name : Setup Rust toolchain
107
98
run : sh ./ci/install-rust.sh
108
99
- name : Check style
109
100
run : sh ci/style.sh
110
101
111
102
docker_linux_tier2 :
103
+ if : github.event.label.name == 'libc-0.2-pre-merge-ci'
112
104
permissions :
113
- actions : write # to cancel workflows (rust-lang/simpleinfra/github-actions/cancel-outdated-builds)
114
105
contents : read # to fetch code (actions/checkout)
115
106
116
107
name : Docker Linux Tier2
@@ -150,9 +141,6 @@ jobs:
150
141
# x86_64-unknown-redox,
151
142
]
152
143
steps :
153
- - uses : rust-lang/simpleinfra/github-actions/cancel-outdated-builds@HEAD
154
- with :
155
- github_token : " ${{ secrets.GITHUB_TOKEN }}"
156
144
- uses : actions/checkout@v4
157
145
- name : Setup Rust toolchain
158
146
run : TARGET=${{ matrix.target }} sh ./ci/install-rust.sh
@@ -163,7 +151,6 @@ jobs:
163
151
# Because of this, only the nightly compiler can be used on these targets.
164
152
docker_linux_build_std :
165
153
permissions :
166
- actions : write # to cancel workflows (rust-lang/simpleinfra/github-actions/cancel-outdated-builds)
167
154
contents : read # to fetch code (actions/checkout)
168
155
169
156
if : ${{ false }} # This is currently broken
@@ -178,9 +165,6 @@ jobs:
178
165
armv7-unknown-linux-uclibceabihf
179
166
]
180
167
steps :
181
- - uses : rust-lang/simpleinfra/github-actions/cancel-outdated-builds@HEAD
182
- with :
183
- github_token : " ${{ secrets.GITHUB_TOKEN }}"
184
168
- uses : actions/checkout@v4
185
169
- name : Setup Rust toolchain
186
170
run : TOOLCHAIN=nightly INSTALL_RUST_SRC=1 sh ./ci/install-rust.sh
@@ -189,26 +173,23 @@ jobs:
189
173
190
174
# devkitpro's pacman needs to be connected from Docker.
191
175
docker_switch :
176
+ if : github.event.label.name == 'libc-0.2-pre-merge-ci'
192
177
permissions :
193
- actions : write # to cancel workflows (rust-lang/simpleinfra/github-actions/cancel-outdated-builds)
194
178
contents : read # to fetch code (actions/checkout)
195
179
196
180
name : Docker Switch
197
181
needs : [docker_linux_tier1, style_check]
198
182
runs-on : ubuntu-22.04
199
183
steps :
200
- - uses : rust-lang/simpleinfra/github-actions/cancel-outdated-builds@HEAD
201
- with :
202
- github_token : " ${{ secrets.GITHUB_TOKEN }}"
203
184
- uses : actions/checkout@v4
204
185
- name : Setup Rust toolchain
205
186
run : sh ./ci/install-rust.sh
206
187
- name : Execute run-docker.sh
207
188
run : LIBC_CI=1 sh ./ci/run-docker.sh switch
208
189
209
190
build_channels_linux :
191
+ if : github.event.label.name == 'libc-0.2-pre-merge-ci'
210
192
permissions :
211
- actions : write # to cancel workflows (rust-lang/simpleinfra/github-actions/cancel-outdated-builds)
212
193
contents : read # to fetch code (actions/checkout)
213
194
214
195
name : Build Channels Linux
@@ -233,16 +214,14 @@ jobs:
233
214
1.30.0,
234
215
]
235
216
steps :
236
- - uses : rust-lang/simpleinfra/github-actions/cancel-outdated-builds@HEAD
237
- with :
238
- github_token : " ${{ secrets.GITHUB_TOKEN }}"
239
217
- uses : actions/checkout@v4
240
218
- name : Setup Rust toolchain
241
219
run : TOOLCHAIN=${{ matrix.toolchain }} sh ./ci/install-rust.sh
242
220
- name : Execute build.sh
243
221
run : LIBC_CI=1 TOOLCHAIN=${{ matrix.toolchain }} sh ./ci/build.sh
244
222
245
223
build_channels_macos :
224
+ if : github.event.label.name == 'libc-0.2-pre-merge-ci'
246
225
permissions :
247
226
contents : read # to fetch code (actions/checkout)
248
227
@@ -268,16 +247,14 @@ jobs:
268
247
- { toolchain: 1.30.0, os: macos-11 }
269
248
runs-on : ${{ matrix.target.os }}
270
249
steps :
271
- - uses : rust-lang/simpleinfra/github-actions/cancel-outdated-builds@HEAD
272
- with :
273
- github_token : " ${{ secrets.GITHUB_TOKEN }}"
274
250
- uses : actions/checkout@v4
275
251
- name : Setup Rust toolchain
276
252
run : TOOLCHAIN=${{ matrix.target.toolchain }} sh ./ci/install-rust.sh
277
253
- name : Execute build.sh
278
254
run : LIBC_CI=1 TOOLCHAIN=${{ matrix.target.toolchain }} sh ./ci/build.sh
279
255
280
256
build_channels_windows :
257
+ if : github.event.label.name == 'libc-0.2-pre-merge-ci'
281
258
permissions :
282
259
contents : read # to fetch code (actions/checkout)
283
260
@@ -305,16 +282,13 @@ jobs:
305
282
shell : bash
306
283
307
284
check_cfg :
285
+ if : github.event.label.name == 'libc-0.2-pre-merge-ci'
308
286
permissions :
309
- actions : write # to cancel workflows (rust-lang/simpleinfra/github-actions/cancel-outdated-builds)
310
287
contents : read # to fetch code (actions/checkout)
311
288
312
289
name : " Check #[cfg]s"
313
290
runs-on : ubuntu-22.04
314
291
steps :
315
- - uses : rust-lang/simpleinfra/github-actions/cancel-outdated-builds@HEAD
316
- with :
317
- github_token : " ${{ secrets.GITHUB_TOKEN }}"
318
292
- uses : actions/checkout@v4
319
293
- name : Setup Rust toolchain
320
294
run : TOOLCHAIN=nightly sh ./ci/install-rust.sh
@@ -325,7 +299,7 @@ jobs:
325
299
# protection, rather than having to add each job separately.
326
300
success :
327
301
name : Success
328
- runs-on : ubuntu-latest
302
+ runs-on : ubuntu-22.04
329
303
needs : [
330
304
docker_linux_tier1,
331
305
docker_linux_tier2,
0 commit comments