6
6
- auto-libc
7
7
- try
8
8
9
+ permissions : {}
9
10
jobs :
10
11
docker_linux_tier1 :
12
+ permissions :
13
+ actions : write # to cancel workflows (rust-lang/simpleinfra/github-actions/cancel-outdated-builds)
14
+ contents : read # to fetch code (actions/checkout)
15
+
11
16
name : Docker Linux Tier1
12
17
runs-on : ubuntu-22.04
13
18
strategy :
28
33
run : LIBC_CI=1 sh ./ci/run-docker.sh ${{ matrix.target }}
29
34
30
35
macos :
36
+ permissions :
37
+ actions : write # to cancel workflows (rust-lang/simpleinfra/github-actions/cancel-outdated-builds)
38
+ contents : read # to fetch code (actions/checkout)
39
+
31
40
name : macOS
32
41
runs-on : macos-12
33
42
strategy :
47
56
run : LIBC_CI=1 sh ./ci/run.sh ${{ matrix.target }}
48
57
49
58
windows :
59
+ permissions :
60
+ actions : write # to cancel workflows (rust-lang/simpleinfra/github-actions/cancel-outdated-builds)
61
+ contents : read # to fetch code (actions/checkout)
62
+
50
63
name : Windows
51
64
runs-on : windows-2022
52
65
env :
83
96
shell : bash
84
97
85
98
style_check :
99
+ permissions :
100
+ actions : write # to cancel workflows (rust-lang/simpleinfra/github-actions/cancel-outdated-builds)
101
+ contents : read # to fetch code (actions/checkout)
102
+
86
103
name : Style check
87
104
runs-on : ubuntu-22.04
88
105
steps :
@@ -96,6 +113,10 @@ jobs:
96
113
run : sh ci/style.sh
97
114
98
115
docker_linux_tier2 :
116
+ permissions :
117
+ actions : write # to cancel workflows (rust-lang/simpleinfra/github-actions/cancel-outdated-builds)
118
+ contents : read # to fetch code (actions/checkout)
119
+
99
120
name : Docker Linux Tier2
100
121
needs : [docker_linux_tier1, style_check]
101
122
runs-on : ubuntu-22.04
@@ -154,6 +175,10 @@ jobs:
154
175
# These targets are tier 3 or otherwise need to have CI build std via -Zbuild-std.
155
176
# Because of this, only the nightly compiler can be used on these targets.
156
177
docker_linux_build_std :
178
+ permissions :
179
+ actions : write # to cancel workflows (rust-lang/simpleinfra/github-actions/cancel-outdated-builds)
180
+ contents : read # to fetch code (actions/checkout)
181
+
157
182
if : ${{ false }} # This is currently broken
158
183
name : Docker Linux Build-Std Targets
159
184
needs : [docker_linux_tier1, style_check]
@@ -177,6 +202,10 @@ jobs:
177
202
178
203
# devkitpro's pacman needs to be connected from Docker.
179
204
docker_switch :
205
+ permissions :
206
+ actions : write # to cancel workflows (rust-lang/simpleinfra/github-actions/cancel-outdated-builds)
207
+ contents : read # to fetch code (actions/checkout)
208
+
180
209
name : Docker Switch
181
210
needs : [docker_linux_tier1, style_check]
182
211
runs-on : ubuntu-22.04
@@ -191,6 +220,10 @@ jobs:
191
220
run : LIBC_CI=1 sh ./ci/run-docker.sh switch
192
221
193
222
build_channels_linux :
223
+ permissions :
224
+ actions : write # to cancel workflows (rust-lang/simpleinfra/github-actions/cancel-outdated-builds)
225
+ contents : read # to fetch code (actions/checkout)
226
+
194
227
name : Build Channels Linux
195
228
needs : docker_linux_tier2
196
229
runs-on : ubuntu-22.04
@@ -221,6 +254,10 @@ jobs:
221
254
run : LIBC_CI=1 TOOLCHAIN=${{ matrix.toolchain }} sh ./ci/build.sh
222
255
223
256
build_channels_macos :
257
+ permissions :
258
+ actions : write # to cancel workflows (rust-lang/simpleinfra/github-actions/cancel-outdated-builds)
259
+ contents : read # to fetch code (actions/checkout)
260
+
224
261
name : Build Channels macOS
225
262
needs : macos
226
263
runs-on : macos-12
@@ -251,6 +288,9 @@ jobs:
251
288
run : LIBC_CI=1 TOOLCHAIN=${{ matrix.toolchain }} sh ./ci/build.sh
252
289
253
290
build_channels_windows :
291
+ permissions :
292
+ contents : read # to fetch code (actions/checkout)
293
+
254
294
name : Build Channels Windows
255
295
runs-on : windows-2022
256
296
env :
@@ -275,6 +315,9 @@ jobs:
275
315
shell : bash
276
316
277
317
semver_linux :
318
+ permissions :
319
+ contents : read # to fetch code (actions/checkout)
320
+
278
321
if : ${{ false }} # This is currently broken
279
322
name : Semver Linux
280
323
runs-on : ubuntu-22.04
@@ -288,6 +331,9 @@ jobs:
288
331
run : sh ci/semver.sh linux
289
332
290
333
semver_macos :
334
+ permissions :
335
+ contents : read # to fetch code (actions/checkout)
336
+
291
337
if : ${{ false }} # This is currently broken
292
338
name : Semver macOS
293
339
runs-on : macos-12
@@ -301,6 +347,10 @@ jobs:
301
347
run : sh ci/semver.sh macos
302
348
303
349
docs :
350
+ permissions :
351
+ actions : write # to cancel workflows (rust-lang/simpleinfra/github-actions/cancel-outdated-builds)
352
+ contents : read # to fetch code (actions/checkout)
353
+
304
354
name : Generate documentation
305
355
runs-on : ubuntu-22.04
306
356
needs : docker_linux_tier2
0 commit comments