|
18 | 18 | CARGO_INCREMENTAL: 0 |
19 | 19 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
20 | 20 | MOZJS_CREATE_ARCHIVE: 1 |
| 21 | + NEW_RUST_CHECK: ${{ inputs.rust_version == 'stable' || inputs.rust_version == 'beta' }} |
21 | 22 |
|
22 | 23 | jobs: |
23 | 24 | mac: |
|
59 | 60 | subject-path: ./target/libmozjs-${{ matrix.platform.target }}.tar.gz |
60 | 61 |
|
61 | 62 | - name: Upload artifact |
62 | | - if: ${{ matrix.features != 'debugmozjs' }} |
| 63 | + if: ${{ matrix.features != 'debugmozjs' && env.NEW_RUST_CHECK == 'false' }} |
63 | 64 | uses: actions/upload-artifact@v4 |
64 | 65 | with: |
65 | 66 | path: ./target/libmozjs-${{ matrix.platform.target }}.tar.gz |
@@ -107,7 +108,7 @@ jobs: |
107 | 108 | subject-path: ./target/libmozjs-x86_64-unknown-linux-gnu.tar.gz |
108 | 109 |
|
109 | 110 | - name: Upload artifact |
110 | | - if: ${{ matrix.features != 'debugmozjs' }} |
| 111 | + if: ${{ matrix.features != 'debugmozjs' && env.NEW_RUST_CHECK == 'false' }} |
111 | 112 | uses: actions/upload-artifact@v4 |
112 | 113 | with: |
113 | 114 | path: ./target/libmozjs-x86_64-unknown-linux-gnu.tar.gz |
@@ -166,7 +167,7 @@ jobs: |
166 | 167 | subject-path: ./target/${{ matrix.target }}/libmozjs-x86_64-pc-windows-msvc.tar.gz |
167 | 168 |
|
168 | 169 | - 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' }} |
170 | 171 | uses: actions/upload-artifact@v4 |
171 | 172 | with: |
172 | 173 | path: ./target/${{ matrix.target }}/libmozjs-x86_64-pc-windows-msvc.tar.gz |
@@ -208,6 +209,7 @@ jobs: |
208 | 209 | subject-path: "./target/libmozjs-${{ matrix.target }}.tar.gz" |
209 | 210 | - name: Upload artifact |
210 | 211 | uses: actions/upload-artifact@v4 |
| 212 | + if: ${{ env.NEW_RUST_CHECK == 'false' }} |
211 | 213 | with: |
212 | 214 | path: ./target/libmozjs-${{ matrix.target }}.tar.gz |
213 | 215 | name: libmozjs-${{ matrix.target }}.tar.gz |
@@ -243,6 +245,7 @@ jobs: |
243 | 245 | subject-path: "./target/libmozjs-${{ matrix.target }}.tar.gz" |
244 | 246 | - name: Upload artifact |
245 | 247 | uses: actions/upload-artifact@v4 |
| 248 | + if: ${{ env.NEW_RUST_CHECK == 'false' }} |
246 | 249 | with: |
247 | 250 | path: ./target/libmozjs-${{ matrix.target }}.tar.gz |
248 | 251 | name: libmozjs-${{ matrix.target }}.tar.gz |
@@ -290,6 +293,7 @@ jobs: |
290 | 293 | subject-path: "./target/libmozjs-wasm32-${{ matrix.target }}.tar.gz" |
291 | 294 | - name: Upload artifact |
292 | 295 | uses: actions/upload-artifact@v4 |
| 296 | + if: ${{ env.NEW_RUST_CHECK == 'false' }} |
293 | 297 | with: |
294 | 298 | path: ./target/libmozjs-wasm32-${{ matrix.target }}.tar.gz |
295 | 299 | name: libmozjs-wasm32-${{ matrix.target }}.tar.gz |
|
0 commit comments