Skip to content

Commit 25ec7a6

Browse files
committed
update workflow
1 parent 1a9520c commit 25ec7a6

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

.github/workflows/release.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,15 @@ jobs:
1111
strategy:
1212
fail-fast: false
1313
matrix:
14-
platform: [windows-latest, macos-latest, ubuntu-latest]
14+
include:
15+
- platform: 'macos-latest'
16+
args: '--target aarch64-apple-darwin'
17+
- platform: 'macos-latest'
18+
args: '--target x86_64-apple-darwin'
19+
- platform: 'ubuntu-22.04'
20+
args: ''
21+
- platform: 'windows-latest'
22+
args: ''
1523
runs-on: ${{ matrix.platform }}
1624
steps:
1725
- name: Checkout
@@ -30,12 +38,14 @@ jobs:
3038

3139
- name: Install Rust (Stable)
3240
uses: dtolnay/rust-toolchain@stable
41+
with:
42+
targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}
3343

3444
- name: Install Dependencies (ubuntu only)
35-
if: matrix.platform == 'ubuntu-latest'
45+
if: matrix.platform == 'ubuntu-22.04'
3646
run: |
3747
sudo apt-get update
38-
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf
48+
sudo apt-get install -y libwebkit2gtk-4.0-dev libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
3949
4050
- name: Install frontend dependencies
4151
run: pnpm install
@@ -54,3 +64,4 @@ jobs:
5464
prerelease: false
5565
includeUpdaterJson: true
5666
updaterJsonPreferNsis: true
67+
args: ${{ matrix.args }}

0 commit comments

Comments
 (0)