Skip to content

Commit 060888d

Browse files
authored
CI: Do not upload artifacts stabel/beta toolchains tests (#628)
* CI: Do not upload artifacts stabel/beta toolchains tests Signed-off-by: Sam <[email protected]> * Fix syntax for conditional in build.yml Signed-off-by: Sam <[email protected]> * fix Signed-off-by: Sam <[email protected]> --------- Signed-off-by: Sam <[email protected]>
1 parent d00153e commit 060888d

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ env:
1818
CARGO_INCREMENTAL: 0
1919
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2020
MOZJS_CREATE_ARCHIVE: 1
21+
NEW_RUST_CHECK: ${{ inputs.rust_version == 'stable' || inputs.rust_version == 'beta' }}
2122

2223
jobs:
2324
mac:
@@ -59,7 +60,7 @@ jobs:
5960
subject-path: ./target/libmozjs-${{ matrix.platform.target }}.tar.gz
6061

6162
- name: Upload artifact
62-
if: ${{ matrix.features != 'debugmozjs' }}
63+
if: ${{ matrix.features != 'debugmozjs' && env.NEW_RUST_CHECK == 'false' }}
6364
uses: actions/upload-artifact@v4
6465
with:
6566
path: ./target/libmozjs-${{ matrix.platform.target }}.tar.gz
@@ -107,7 +108,7 @@ jobs:
107108
subject-path: ./target/libmozjs-x86_64-unknown-linux-gnu.tar.gz
108109

109110
- name: Upload artifact
110-
if: ${{ matrix.features != 'debugmozjs' }}
111+
if: ${{ matrix.features != 'debugmozjs' && env.NEW_RUST_CHECK == 'false' }}
111112
uses: actions/upload-artifact@v4
112113
with:
113114
path: ./target/libmozjs-x86_64-unknown-linux-gnu.tar.gz
@@ -166,7 +167,7 @@ jobs:
166167
subject-path: ./target/${{ matrix.target }}/libmozjs-x86_64-pc-windows-msvc.tar.gz
167168

168169
- name: Upload artifact
169-
if: ${{ !contains(matrix.target, 'aarch64') && matrix.features != 'debugmozjs' }}
170+
if: ${{ !contains(matrix.target, 'aarch64') && matrix.features != 'debugmozjs' && env.NEW_RUST_CHECK == 'false' }}
170171
uses: actions/upload-artifact@v4
171172
with:
172173
path: ./target/${{ matrix.target }}/libmozjs-x86_64-pc-windows-msvc.tar.gz
@@ -208,6 +209,7 @@ jobs:
208209
subject-path: "./target/libmozjs-${{ matrix.target }}.tar.gz"
209210
- name: Upload artifact
210211
uses: actions/upload-artifact@v4
212+
if: ${{ env.NEW_RUST_CHECK == 'false' }}
211213
with:
212214
path: ./target/libmozjs-${{ matrix.target }}.tar.gz
213215
name: libmozjs-${{ matrix.target }}.tar.gz
@@ -243,6 +245,7 @@ jobs:
243245
subject-path: "./target/libmozjs-${{ matrix.target }}.tar.gz"
244246
- name: Upload artifact
245247
uses: actions/upload-artifact@v4
248+
if: ${{ env.NEW_RUST_CHECK == 'false' }}
246249
with:
247250
path: ./target/libmozjs-${{ matrix.target }}.tar.gz
248251
name: libmozjs-${{ matrix.target }}.tar.gz
@@ -290,6 +293,7 @@ jobs:
290293
subject-path: "./target/libmozjs-wasm32-${{ matrix.target }}.tar.gz"
291294
- name: Upload artifact
292295
uses: actions/upload-artifact@v4
296+
if: ${{ env.NEW_RUST_CHECK == 'false' }}
293297
with:
294298
path: ./target/libmozjs-wasm32-${{ matrix.target }}.tar.gz
295299
name: libmozjs-wasm32-${{ matrix.target }}.tar.gz

0 commit comments

Comments
 (0)