@@ -296,18 +296,23 @@ jobs:
296
296
timeout-minutes : 90
297
297
298
298
steps :
299
+ - name : Create
300
+ shell : cmd
301
+ if : runner.os == 'Windows' && matrix.config.working-directory
302
+ run : mkdir "${{ matrix.config.working-directory }}"
303
+
299
304
- name : Checkout
300
305
if : fromJSON(matrix.config.container) == null
301
306
uses : actions/checkout@v4
302
307
with :
303
- path : ${{ matrix.config.working-directory }}
308
+ path : ${{ runner.os == 'Windows' && matrix.config.working-directory }}
304
309
305
310
- name : Checkout
306
311
# actions/checkout@v4 has dependency on a higher version of glibc than available in the Linux container.
307
312
if : fromJSON(matrix.config.container) != null
308
313
uses : actions/checkout@v3
309
314
with :
310
- path : ${{ matrix.config.working-directory }}
315
+ path : ${{ runner.os == 'Windows' && matrix.config.working-directory }}
311
316
312
317
- name : Install Node.js
313
318
if : fromJSON(matrix.config.container) == null && runner.os != 'Windows'
@@ -367,7 +372,7 @@ jobs:
367
372
CREATE_USERNAME : ${{ secrets.CREATE_USERNAME }}
368
373
CREATE_PASSWORD : ${{ secrets.CREATE_PASSWORD }}
369
374
CREATE_CLIENT_SECRET : ${{ secrets.CREATE_CLIENT_SECRET }}
370
- working-directory : ${{ matrix.config.working-directory || './' }}
375
+ working-directory : ${{ runner.os == 'Windows' && matrix.config.working-directory || './' }}
371
376
run : |
372
377
# See: https://www.electron.build/code-signing
373
378
if [ $CAN_SIGN = false ] || [ $IS_WINDOWS_CONFIG = true ]; then
@@ -397,7 +402,7 @@ jobs:
397
402
if : >
398
403
needs.select-targets.outputs.merge-channel-files == 'true' &&
399
404
matrix.config.mergeable-channel-file == 'true'
400
- working-directory : ${{ matrix.config.working-directory || './' }}
405
+ working-directory : ${{ runner.os == 'Windows' && matrix.config.working-directory || './' }}
401
406
run : |
402
407
staged_channel_files_path="${{ runner.temp }}/staged-channel-files"
403
408
mkdir "$staged_channel_files_path"
@@ -417,14 +422,14 @@ jobs:
417
422
with :
418
423
if-no-files-found : error
419
424
name : ${{ env.STAGED_CHANNEL_FILES_ARTIFACT }}
420
- path : ${{ matrix.config.working-directory && format('{0}/{1}', matrix.config.working-directory, env.STAGED_CHANNEL_FILES_PATH) || env.STAGED_CHANNEL_FILES_PATH }}
425
+ path : ${{ runner.os == 'Windows' && matrix.config.working-directory && format('{0}/{1}', matrix.config.working-directory, env.STAGED_CHANNEL_FILES_PATH) || env.STAGED_CHANNEL_FILES_PATH }}
421
426
422
427
423
428
- name : Upload [GitHub Actions]
424
429
uses : actions/upload-artifact@v3
425
430
with :
426
431
name : ${{ env.JOB_TRANSFER_ARTIFACT }}
427
- path : ${{ matrix.config.working-directory && format('{0}/{1}', matrix.config.working-directory, env.BUILD_ARTIFACTS_PATH) || env.BUILD_ARTIFACTS_PATH }}
432
+ path : ${{ runner.os == 'Windows' && matrix.config.working-directory && format('{0}/{1}', matrix.config.working-directory, env.BUILD_ARTIFACTS_PATH) || env.BUILD_ARTIFACTS_PATH }}
428
433
429
434
merge-channel-files :
430
435
needs :
0 commit comments