Skip to content

Commit 45244b9

Browse files
committed
feat: added multi-platform build support
1 parent aa71380 commit 45244b9

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/dev.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,14 @@ jobs:
1414
fail-fast: false
1515
matrix:
1616
include:
17-
- platform: 'ubuntu-22.04'
17+
- platform: 'macos-latest' # for Arm based macs (M1 and above).
18+
args: '--target aarch64-apple-darwin'
19+
- platform: 'macos-latest' # for Intel based macs.
20+
args: '--target x86_64-apple-darwin'
21+
- platform: 'ubuntu-22.04' # for Tauri v1 you could replace this with ubuntu-20.04.
22+
args: ''
23+
- platform: 'windows-latest'
1824
args: ''
19-
# - platform: 'windows-latest'
20-
# args: ''
2125

2226
runs-on: ${{ matrix.platform }}
2327
environment: PROD
@@ -51,7 +55,6 @@ jobs:
5155
cat CHANGELOG.md
5256
cat CHANGELOG.md >> $GITHUB_ENV
5357
echo "EOF" >> $GITHUB_ENV
54-
echo ${{ env.RELEASE_BODY }}
5558
5659
- uses: tauri-apps/tauri-action@v0
5760
env:
@@ -62,6 +65,7 @@ jobs:
6265
tagName: app-v__VERSION__
6366
releaseName: 'App v__VERSION__'
6467
releaseBody: ${{ env.RELEASE_BODY }} # Use the changelog content as the release body
68+
releaseId: ${{github.ref_name}}
6569
releaseDraft: true
6670
prerelease: false
6771
args: ${{ matrix.args }}

0 commit comments

Comments
 (0)