Skip to content

Commit 4222642

Browse files
rel paths
1 parent 6fe93ce commit 4222642

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ env:
7575
# as this runs on a self hosted runner, we need to override the default working directory,
7676
# otherwise paths in the build job will be too long for `light.exe`
7777
working-directory: 'C:\a'
78+
relative-working-directory: '../../../../a'
7879
artifacts:
7980
- path: '*Windows_64bit.exe'
8081
name: Windows_X86-64_interactive_installer
@@ -305,14 +306,14 @@ jobs:
305306
if: fromJSON(matrix.config.container) == null
306307
uses: actions/checkout@v4
307308
with:
308-
path: ${{ runner.os == 'Windows' && matrix.config.working-directory }}
309+
path: ${{ runner.os == 'Windows' && matrix.config.relative-working-directory }}
309310

310311
- name: Checkout
311312
# actions/checkout@v4 has dependency on a higher version of glibc than available in the Linux container.
312313
if: fromJSON(matrix.config.container) != null
313314
uses: actions/checkout@v3
314315
with:
315-
path: ${{ runner.os == 'Windows' && matrix.config.working-directory }}
316+
path: ${{ runner.os == 'Windows' && matrix.config.relative-working-directory }}
316317

317318
- name: Install Node.js
318319
if: fromJSON(matrix.config.container) == null && runner.os != 'Windows'
@@ -422,14 +423,14 @@ jobs:
422423
with:
423424
if-no-files-found: error
424425
name: ${{ env.STAGED_CHANNEL_FILES_ARTIFACT }}
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 }}
426+
path: ${{ runner.os == 'Windows' && matrix.config.relative-working-directory && format('{0}/{1}', matrix.config.relative-working-directory, env.STAGED_CHANNEL_FILES_PATH) || env.STAGED_CHANNEL_FILES_PATH }}
426427

427428

428429
- name: Upload [GitHub Actions]
429430
uses: actions/upload-artifact@v3
430431
with:
431432
name: ${{ env.JOB_TRANSFER_ARTIFACT }}
432-
path: ${{ runner.os == 'Windows' && matrix.config.working-directory && format('{0}/{1}', matrix.config.working-directory, env.BUILD_ARTIFACTS_PATH) || env.BUILD_ARTIFACTS_PATH }}
433+
path: ${{ runner.os == 'Windows' && matrix.config.relative-working-directory && format('{0}/{1}', matrix.config.relative-working-directory, env.BUILD_ARTIFACTS_PATH) || env.BUILD_ARTIFACTS_PATH }}
433434

434435
merge-channel-files:
435436
needs:

0 commit comments

Comments
 (0)