Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 6fe93ce

Browse files
committedJul 2, 2024·
create dir
1 parent a14de2a commit 6fe93ce

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed
 

‎.github/workflows/build.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -296,18 +296,23 @@ jobs:
296296
timeout-minutes: 90
297297

298298
steps:
299+
- name: Create
300+
shell: cmd
301+
if: runner.os == 'Windows' && matrix.config.working-directory
302+
run: mkdir "${{ matrix.config.working-directory }}"
303+
299304
- name: Checkout
300305
if: fromJSON(matrix.config.container) == null
301306
uses: actions/checkout@v4
302307
with:
303-
path: ${{ matrix.config.working-directory }}
308+
path: ${{ runner.os == 'Windows' && matrix.config.working-directory }}
304309

305310
- name: Checkout
306311
# actions/checkout@v4 has dependency on a higher version of glibc than available in the Linux container.
307312
if: fromJSON(matrix.config.container) != null
308313
uses: actions/checkout@v3
309314
with:
310-
path: ${{ matrix.config.working-directory }}
315+
path: ${{ runner.os == 'Windows' && matrix.config.working-directory }}
311316

312317
- name: Install Node.js
313318
if: fromJSON(matrix.config.container) == null && runner.os != 'Windows'
@@ -367,7 +372,7 @@ jobs:
367372
CREATE_USERNAME: ${{ secrets.CREATE_USERNAME }}
368373
CREATE_PASSWORD: ${{ secrets.CREATE_PASSWORD }}
369374
CREATE_CLIENT_SECRET: ${{ secrets.CREATE_CLIENT_SECRET }}
370-
working-directory: ${{ matrix.config.working-directory || './' }}
375+
working-directory: ${{ runner.os == 'Windows' && matrix.config.working-directory || './' }}
371376
run: |
372377
# See: https://www.electron.build/code-signing
373378
if [ $CAN_SIGN = false ] || [ $IS_WINDOWS_CONFIG = true ]; then
@@ -397,7 +402,7 @@ jobs:
397402
if: >
398403
needs.select-targets.outputs.merge-channel-files == 'true' &&
399404
matrix.config.mergeable-channel-file == 'true'
400-
working-directory: ${{ matrix.config.working-directory || './' }}
405+
working-directory: ${{ runner.os == 'Windows' && matrix.config.working-directory || './' }}
401406
run: |
402407
staged_channel_files_path="${{ runner.temp }}/staged-channel-files"
403408
mkdir "$staged_channel_files_path"
@@ -417,14 +422,14 @@ jobs:
417422
with:
418423
if-no-files-found: error
419424
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 }}
421426

422427

423428
- name: Upload [GitHub Actions]
424429
uses: actions/upload-artifact@v3
425430
with:
426431
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 }}
428433

429434
merge-channel-files:
430435
needs:

0 commit comments

Comments
 (0)
Please sign in to comment.