Skip to content

Commit

Permalink
fix: windows action workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mmvanheusden committed Dec 12, 2024
1 parent 9fadf3a commit 63c421a
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,40 +63,37 @@ jobs:
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 (Linux, MacOS)
- name: fix JSON
if: matrix.platform != 'windows-latest'
id: truncate_paths_x
id: truncate_paths
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_x.outputs.paths }}
path: ${{ steps.truncate_paths.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_x.outputs.paths }}
path: ${{ steps.truncate_paths.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_x.outputs.paths }}
path: ${{ steps.truncate_paths.outputs.paths }}

- name: upload windows artifacts
if: matrix.platform == 'windows-latest'
uses: actions/upload-artifact@v4
with:
name: windows-artifacts
path: ${{ steps.truncate_paths_win.outputs.paths }}
path: "./src-tauri/target/release/bundle/**/*.{msi,MSI,exe,EXE}" # fck windows


0 comments on commit 63c421a

Please sign in to comment.