Skip to content

Commit

Permalink
fix: action
Browse files Browse the repository at this point in the history
  • Loading branch information
mmvanheusden committed Dec 12, 2024
1 parent 6ed3e71 commit 9374b9d
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,35 +64,41 @@ jobs:
with:
args: ${{ matrix.args }}
includeUpdaterJson: false

- name: fix JSON (Windows)
if: matrix.platform == 'windows-latest'
id: truncate_paths_win
run: echo "paths=$(echo '${{ steps.build.outputs.artifactPaths }}' | jq -r '.[0]')" >> $GITHUB_OUTPUT

- name: fix JSON
id: truncate_paths
- name: fix JSON (Linux, MacOS)
if: matrix.platform != 'windows-latest'
id: truncate_paths_x
run: echo "paths=$(echo '${{ steps.build.outputs.artifactPaths }}' | sed 's/^..//' | sed 's/..$//')" >> $GITHUB_OUTPUT

- name: upload macos artifacts (M1)
if: matrix.platform == 'macos-latest' && matrix.arch == 'aarch64'
uses: actions/upload-artifact@v4
with:
name: macos-m1-artifacts
path: ${{ steps.truncate_paths.outputs.paths }}
path: ${{ steps.truncate_paths_x.outputs.paths }}

- name: upload macos artifacts (Intel)
if: matrix.platform == 'macos-latest' && matrix.arch == 'x86_64'
uses: actions/upload-artifact@v4
with:
name: macos-intel-artifacts
path: ${{ steps.truncate_paths.outputs.paths }}
path: ${{ steps.truncate_paths_x.outputs.paths }}

- name: upload linux artifacts
if: matrix.platform == 'ubuntu-22.04'
uses: actions/upload-artifact@v4
with:
name: linux-artifacts
path: ${{ steps.truncate_paths.outputs.paths }}
path: ${{ steps.truncate_paths_x.outputs.paths }}

- name: upload windows artifacts
if: matrix.platform == 'windows-latest'
uses: actions/upload-artifact@v4
with:
name: windows-artifacts
path: ${{ steps.truncate_paths.outputs.paths }}
path: ${{ steps.truncate_paths_win.outputs.paths }}

0 comments on commit 9374b9d

Please sign in to comment.