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,9 @@ jobs:
221
254
run : LIBC_CI=1 TOOLCHAIN=${{ matrix.toolchain }} sh ./ci/build.sh
222
255
223
256
build_channels_macos :
257
+ permissions :
258
+ contents : read # to fetch code (actions/checkout)
259
+
224
260
name : Build Channels macOS
225
261
needs : macos
226
262
# FIXME: Use macOS 11 for now as CI failed with a linker error on macOS 12 image:
@@ -255,6 +291,9 @@ jobs:
255
291
run : LIBC_CI=1 TOOLCHAIN=${{ matrix.toolchain }} sh ./ci/build.sh
256
292
257
293
build_channels_windows :
294
+ permissions :
295
+ contents : read # to fetch code (actions/checkout)
296
+
258
297
name : Build Channels Windows
259
298
runs-on : windows-2022
260
299
env :
@@ -305,6 +344,10 @@ jobs:
305
344
run : sh ci/semver.sh macos
306
345
307
346
docs :
347
+ permissions :
348
+ actions : write # to cancel workflows (rust-lang/simpleinfra/github-actions/cancel-outdated-builds)
349
+ contents : read # to fetch code (actions/checkout)
350
+
308
351
name : Generate documentation
309
352
runs-on : ubuntu-22.04
310
353
needs : docker_linux_tier2
0 commit comments