Skip to content

Commit 597f06a

Browse files
committed
ci: arm builds for macOS and linux
1 parent 630b3e6 commit 597f06a

File tree

2 files changed

+36
-2
lines changed

2 files changed

+36
-2
lines changed

.github/workflows/build.yml

+17-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,14 @@ jobs:
1313
strategy:
1414
fail-fast: false
1515
matrix:
16-
platform: [macos-latest, ubuntu-22.04, windows-latest]
16+
include:
17+
- platform: 'macos-latest' # for Arm based macs
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'
22+
- platform: 'ubuntu-22.04-arm' # for Arm based linux.
23+
- platform: 'windows-latest'
1724
runs-on: ${{ matrix.platform }}
1825

1926
steps:
@@ -27,6 +34,13 @@ jobs:
2734
sudo apt-get update
2835
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.1-dev libayatana-appindicator3-dev librsvg2-dev \
2936
libjavascriptcoregtk-4.1-dev libsoup-3.0-dev
37+
38+
- name: Install dependencies (ubuntu-arm only)
39+
if: matrix.platform == 'ubuntu-22.04-arm'
40+
# You can remove libayatana-appindicator3-dev if you don't use the system tray feature.
41+
run: |
42+
sudo apt-get update
43+
sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf libgtk-3-dev xdg-utils
3044
3145
- name: Rust setup
3246
uses: dtolnay/rust-toolchain@stable
@@ -52,3 +66,5 @@ jobs:
5266
uses: tauri-apps/tauri-action@v0
5367
env:
5468
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
69+
with:
70+
args: ${{ matrix.args }}

.github/workflows/release.yml

+19-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,17 @@ jobs:
1414
strategy:
1515
fail-fast: false
1616
matrix:
17-
platform: [macos-latest, ubuntu-22.04, windows-latest]
17+
include:
18+
- platform: 'macos-latest' # for Arm based macs (M1 and above).
19+
args: '--target aarch64-apple-darwin'
20+
- platform: 'macos-latest' # for Intel based macs.
21+
args: '--target x86_64-apple-darwin'
22+
- platform: 'ubuntu-22.04'
23+
args: ''
24+
- platform: 'ubuntu-22.04-arm' # for Arm based linux.
25+
args: ''
26+
- platform: 'windows-latest' # for Arm based windows.
27+
args: '--target x86_64-pc-windows-msvc'
1828
runs-on: ${{ matrix.platform }}
1929

2030
steps:
@@ -27,6 +37,13 @@ jobs:
2737
run: |
2838
sudo apt-get update
2939
sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
40+
41+
- name: Install dependencies (ubuntu-arm only)
42+
if: matrix.platform == 'ubuntu-22.04-arm'
43+
# You can remove libayatana-appindicator3-dev if you don't use the system tray feature.
44+
run: |
45+
sudo apt-get update
46+
sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf libgtk-3-dev xdg-utils
3047
3148
- name: Rust setup
3249
uses: dtolnay/rust-toolchain@stable
@@ -59,3 +76,4 @@ jobs:
5976
releaseBody: 'See the assets to download and install this version.'
6077
releaseDraft: true
6178
prerelease: false
79+
args: ${{ matrix.args }}

0 commit comments

Comments
 (0)