72
72
# and the companion needs.select-targets.outputs.merge-channel-files property (output values always have string
73
73
# type).
74
74
mergeable-channel-file: 'false'
75
+ # as this runs on a self hosted runner, we need to override the default working directory,
76
+ # otherwise paths in the build job will be too long for `light.exe`
77
+ working-directory: 'C:\a'
75
78
artifacts:
76
79
- path: '*Windows_64bit.exe'
77
80
name: Windows_X86-64_interactive_installer
@@ -296,11 +299,15 @@ jobs:
296
299
- name : Checkout
297
300
if : fromJSON(matrix.config.container) == null
298
301
uses : actions/checkout@v4
299
-
302
+ with :
303
+ path : ${{ matrix.config.working-directory }}
304
+
300
305
- name : Checkout
301
306
# actions/checkout@v4 has dependency on a higher version of glibc than available in the Linux container.
302
307
if : fromJSON(matrix.config.container) != null
303
308
uses : actions/checkout@v3
309
+ with :
310
+ path : ${{ matrix.config.working-directory }}
304
311
305
312
- name : Install Node.js
306
313
if : fromJSON(matrix.config.container) == null && runner.os != 'Windows'
@@ -360,6 +367,7 @@ jobs:
360
367
CREATE_USERNAME : ${{ secrets.CREATE_USERNAME }}
361
368
CREATE_PASSWORD : ${{ secrets.CREATE_PASSWORD }}
362
369
CREATE_CLIENT_SECRET : ${{ secrets.CREATE_CLIENT_SECRET }}
370
+ working-directory : ${{ matrix.config.working-directory || './' }}
363
371
run : |
364
372
# See: https://www.electron.build/code-signing
365
373
if [ $CAN_SIGN = false ] || [ $IS_WINDOWS_CONFIG = true ]; then
@@ -389,6 +397,7 @@ jobs:
389
397
if : >
390
398
needs.select-targets.outputs.merge-channel-files == 'true' &&
391
399
matrix.config.mergeable-channel-file == 'true'
400
+ working-directory : ${{ matrix.config.working-directory || './' }}
392
401
run : |
393
402
staged_channel_files_path="${{ runner.temp }}/staged-channel-files"
394
403
mkdir "$staged_channel_files_path"
@@ -408,13 +417,14 @@ jobs:
408
417
with :
409
418
if-no-files-found : error
410
419
name : ${{ env.STAGED_CHANNEL_FILES_ARTIFACT }}
411
- path : ${{ env.STAGED_CHANNEL_FILES_PATH }}
420
+ path : ${{ matrix.config.working-directory && format('{0}/{1}', matrix.config.working-directory, env.STAGED_CHANNEL_FILES_PATH) || env.STAGED_CHANNEL_FILES_PATH }}
421
+
412
422
413
423
- name : Upload [GitHub Actions]
414
424
uses : actions/upload-artifact@v3
415
425
with :
416
426
name : ${{ env.JOB_TRANSFER_ARTIFACT }}
417
- path : ${{ env.BUILD_ARTIFACTS_PATH }}
427
+ path : ${{ matrix.config.working-directory && format('{0}/{1}', matrix.config.working-directory, env.BUILD_ARTIFACTS_PATH) || env.BUILD_ARTIFACTS_PATH }}
418
428
419
429
merge-channel-files :
420
430
needs :
0 commit comments