Skip to content

Commit 4752a76

Browse files
authored
feat: build for aarch64 linux (#372)
1 parent 394d18b commit 4752a76

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

.github/workflows/tauri-edge.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ jobs:
7070
args: "--target aarch64-apple-darwin"
7171
- platform: "ubuntu-22.04"
7272
args: ""
73+
- platform: "depot-ubuntu-24.04-arm-4"
74+
args: "--target aarch64-unknown-linux-gnu"
7375

7476
runs-on: ${{ matrix.platform }}
7577

@@ -81,7 +83,7 @@ jobs:
8183
ssh-private-key: ${{ secrets.TS_CLONE_DEPLOY_KEY }}
8284

8385
- name: install dependencies (ubuntu only)
84-
if: matrix.platform == 'ubuntu-22.04'
86+
if: matrix.platform == 'ubuntu-22.04' || matrix.platform == 'depot-ubuntu-24.04-arm-4'
8587
run: |
8688
sudo apt-get update
8789
sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf libasound2-dev
@@ -102,7 +104,7 @@ jobs:
102104
- name: install Rust stable
103105
uses: dtolnay/rust-toolchain@stable
104106
with:
105-
targets: ${{ matrix.platform == 'depot-macos-latest' && 'aarch64-apple-darwin' || '' }}
107+
targets: ${{ matrix.platform == 'depot-macos-latest' && 'aarch64-apple-darwin' || (matrix.platform == 'depot-ubuntu-24.04-arm-4' && 'aarch64-unknown-linux-gnu' || '') }}
106108

107109
- name: install frontend dependencies
108110
run: bun install

.github/workflows/tauri-release.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ jobs:
7979
args: "--target aarch64-apple-darwin"
8080
- platform: "depot-ubuntu-22.04-4"
8181
args: ""
82+
- platform: "depot-ubuntu-24.04-arm-4"
83+
args: "--target aarch64-unknown-linux-gnu"
8284

8385
runs-on: ${{ matrix.platform }}
8486
steps:
@@ -89,7 +91,7 @@ jobs:
8991
ssh-private-key: ${{ secrets.TS_CLONE_DEPLOY_KEY }}
9092

9193
- name: install dependencies (ubuntu only)
92-
if: matrix.platform == 'depot-ubuntu-22.04-4' # This must match the platform value defined above.
94+
if: matrix.platform == 'depot-ubuntu-22.04-4' || matrix.platform == 'depot-ubuntu-24.04-arm-4'
9395
run: |
9496
sudo apt-get update
9597
sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf libasound2-dev
@@ -107,8 +109,8 @@ jobs:
107109
- name: install Rust stable
108110
uses: dtolnay/rust-toolchain@stable # Set this to dtolnay/rust-toolchain@nightly
109111
with:
110-
# Those targets are only used on macos runners so it's in an `if` to slightly speed up windows and linux builds.
111-
targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin' || '' }}
112+
# Targets are set for macOS and ARM Linux runners to enable cross-compilation.
113+
targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin' || (matrix.platform == 'depot-ubuntu-24.04-arm-4' && 'aarch64-unknown-linux-gnu' || '') }}
112114

113115
- name: Rust cache
114116
uses: swatinem/rust-cache@v2

0 commit comments

Comments
 (0)