Skip to content

Commit

Permalink
try fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon-Laux committed Jan 11, 2025
1 parent b2ecbc3 commit 9155e6f
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions .github/workflows/build-tauri-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ jobs:
matrix:
include:
- platform: 'macos-latest' # for Arm based macs (M1 and above).
label: "aarch64"
label: 'aarch64'
args: '--target aarch64-apple-darwin'
- platform: 'macos-latest' # for Intel based macs.
label: "x86_64"
label: 'x86_64'
args: '--target x86_64-apple-darwin'
- platform: 'ubuntu-22.04' # for Tauri v1 you could replace this with ubuntu-20.04.
label: "x86_64"
label: 'x86_64'
args: ''
- platform: 'windows-latest'
label: "x86_64"
label: 'x86_64'
args: ''

runs-on: ${{ matrix.platform }}
Expand Down Expand Up @@ -71,23 +71,30 @@ jobs:
with:
projectPath: packages/target-tauri
args: ${{ matrix.args }}

- name: run convert artifactPaths
if: matrix.platform != 'windows-latest'
id: paths
run: |
paths=$( echo "${{ steps.build.outputs.artifactPaths }}" | jq '.[]' | sed 's/"//g' )
echo "::set-output name=artifactPaths::$token"
- uses: actions/upload-artifact@v4
if: matrix.platform != 'windows-latest'
with:
name: ${{ matrix.platform }}-${{ matrix.label }}
path: ${{ steps.paths.outputs.artifactPaths }}

- name: run convert artifactPaths
if: matrix.platform == 'windows-latest'
id: paths
id: pathsWin
run: |
$paths = ($env:steps_build_outputs_artifactPaths | jq '.[]' | ForEach-Object { $_ -replace '"', '' })
echo "::set-output name=artifactPaths::$paths"
shell: pwsh

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

0 comments on commit 9155e6f

Please sign in to comment.