Skip to content

Commit

Permalink
create dir
Browse files Browse the repository at this point in the history
  • Loading branch information
davegarthsimpson committed Jul 2, 2024
1 parent a14de2a commit 6fe93ce
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -296,18 +296,23 @@ jobs:
timeout-minutes: 90

steps:
- name: Create
shell: cmd
if: runner.os == 'Windows' && matrix.config.working-directory
run: mkdir "${{ matrix.config.working-directory }}"

- name: Checkout
if: fromJSON(matrix.config.container) == null
uses: actions/checkout@v4
with:
path: ${{ matrix.config.working-directory }}
path: ${{ runner.os == 'Windows' && matrix.config.working-directory }}

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

- name: Install Node.js
if: fromJSON(matrix.config.container) == null && runner.os != 'Windows'
Expand Down Expand Up @@ -367,7 +372,7 @@ jobs:
CREATE_USERNAME: ${{ secrets.CREATE_USERNAME }}
CREATE_PASSWORD: ${{ secrets.CREATE_PASSWORD }}
CREATE_CLIENT_SECRET: ${{ secrets.CREATE_CLIENT_SECRET }}
working-directory: ${{ matrix.config.working-directory || './' }}
working-directory: ${{ runner.os == 'Windows' && matrix.config.working-directory || './' }}
run: |
# See: https://www.electron.build/code-signing
if [ $CAN_SIGN = false ] || [ $IS_WINDOWS_CONFIG = true ]; then
Expand Down Expand Up @@ -397,7 +402,7 @@ jobs:
if: >
needs.select-targets.outputs.merge-channel-files == 'true' &&
matrix.config.mergeable-channel-file == 'true'
working-directory: ${{ matrix.config.working-directory || './' }}
working-directory: ${{ runner.os == 'Windows' && matrix.config.working-directory || './' }}
run: |
staged_channel_files_path="${{ runner.temp }}/staged-channel-files"
mkdir "$staged_channel_files_path"
Expand All @@ -417,14 +422,14 @@ jobs:
with:
if-no-files-found: error
name: ${{ env.STAGED_CHANNEL_FILES_ARTIFACT }}
path: ${{ matrix.config.working-directory && format('{0}/{1}', matrix.config.working-directory, env.STAGED_CHANNEL_FILES_PATH) || env.STAGED_CHANNEL_FILES_PATH }}
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 }}


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

merge-channel-files:
needs:
Expand Down

0 comments on commit 6fe93ce

Please sign in to comment.