22
22
23
23
jobs :
24
24
dist :
25
+ if : ${{ github.repository == 'rust-lang/rust-analyzer' || github.event.action == 'workflow_dispatch' }}
25
26
strategy :
26
27
matrix :
27
28
include :
@@ -33,14 +34,14 @@ jobs:
33
34
- os : windows-latest
34
35
target : aarch64-pc-windows-msvc
35
36
code-target : win32-arm64
36
- - os : ubuntu-20.04
37
+ - os : ubuntu-latest
37
38
target : x86_64-unknown-linux-gnu
38
39
code-target : linux-x64
39
40
container : rockylinux:8
40
- - os : ubuntu-20.04
41
+ - os : ubuntu-latest
41
42
target : aarch64-unknown-linux-gnu
42
43
code-target : linux-arm64
43
- - os : ubuntu-20.04
44
+ - os : ubuntu-latest
44
45
target : arm-unknown-linux-gnueabihf
45
46
code-target : linux-armhf
46
47
- os : macos-13
@@ -138,6 +139,7 @@ jobs:
138
139
path : ./dist
139
140
140
141
dist-x86_64-unknown-linux-musl :
142
+ if : ${{ github.repository == 'rust-lang/rust-analyzer' || github.event.action == 'workflow_dispatch' }}
141
143
name : dist (x86_64-unknown-linux-musl)
142
144
runs-on : ubuntu-latest
143
145
env :
@@ -183,6 +185,7 @@ jobs:
183
185
path : ./dist
184
186
185
187
publish :
188
+ if : ${{ github.repository == 'rust-lang/rust-analyzer' || github.event.action == 'workflow_dispatch' }}
186
189
name : publish
187
190
runs-on : ubuntu-latest
188
191
needs : ["dist", "dist-x86_64-unknown-linux-musl"]
@@ -257,24 +260,24 @@ jobs:
257
260
working-directory : ./editors/code
258
261
259
262
- name : Publish Extension (Code Marketplace, release)
260
- if : github.ref == 'refs/heads/release' && ( github.repository == 'rust-analyzer/rust-analyzer' || github.repository == 'rust- lang/rust-analyzer')
263
+ if : github.ref == 'refs/heads/release' && github.repository == 'rust-lang/rust-analyzer'
261
264
working-directory : ./editors/code
262
265
# token from https://dev.azure.com/rust-analyzer/
263
266
run : npx vsce publish --pat ${{ secrets.MARKETPLACE_TOKEN }} --packagePath ../../dist/rust-analyzer-*.vsix
264
267
265
268
- name : Publish Extension (OpenVSX, release)
266
- if : github.ref == 'refs/heads/release' && ( github.repository == 'rust-analyzer/rust-analyzer' || github.repository == 'rust- lang/rust-analyzer')
269
+ if : github.ref == 'refs/heads/release' && github.repository == 'rust-lang/rust-analyzer'
267
270
working-directory : ./editors/code
268
271
run : npx ovsx publish --pat ${{ secrets.OPENVSX_TOKEN }} --packagePath ../../dist/rust-analyzer-*.vsix
269
272
timeout-minutes : 2
270
273
271
274
- name : Publish Extension (Code Marketplace, nightly)
272
- if : github.ref != 'refs/heads/release' && ( github.repository == 'rust-analyzer/rust-analyzer' || github.repository == 'rust- lang/rust-analyzer')
275
+ if : github.ref != 'refs/heads/release' && github.repository == 'rust-lang/rust-analyzer'
273
276
working-directory : ./editors/code
274
277
run : npx vsce publish --pat ${{ secrets.MARKETPLACE_TOKEN }} --packagePath ../../dist/rust-analyzer-*.vsix --pre-release
275
278
276
279
- name : Publish Extension (OpenVSX, nightly)
277
- if : github.ref != 'refs/heads/release' && ( github.repository == 'rust-analyzer/rust-analyzer' || github.repository == 'rust- lang/rust-analyzer')
280
+ if : github.ref != 'refs/heads/release' && github.repository == 'rust-lang/rust-analyzer'
278
281
working-directory : ./editors/code
279
282
run : npx ovsx publish --pat ${{ secrets.OPENVSX_TOKEN }} --packagePath ../../dist/rust-analyzer-*.vsix
280
283
timeout-minutes : 2
0 commit comments