From 91d916b8908f2d1819b33dc723bce6dd24fdda76 Mon Sep 17 00:00:00 2001 From: Ellie Huxtable Date: Mon, 26 Jan 2026 17:14:03 -0800 Subject: [PATCH] feat: build for aarch64 linux --- .github/workflows/tauri-edge.yaml | 6 ++++-- .github/workflows/tauri-release.yaml | 8 +++++--- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/tauri-edge.yaml b/.github/workflows/tauri-edge.yaml index 6281ea83..e18fac37 100644 --- a/.github/workflows/tauri-edge.yaml +++ b/.github/workflows/tauri-edge.yaml @@ -70,6 +70,8 @@ jobs: args: "--target aarch64-apple-darwin" - platform: "ubuntu-22.04" args: "" + - platform: "depot-ubuntu-24.04-arm-4" + args: "--target aarch64-unknown-linux-gnu" runs-on: ${{ matrix.platform }} @@ -81,7 +83,7 @@ jobs: ssh-private-key: ${{ secrets.TS_CLONE_DEPLOY_KEY }} - name: install dependencies (ubuntu only) - if: matrix.platform == 'ubuntu-22.04' + if: matrix.platform == 'ubuntu-22.04' || matrix.platform == 'depot-ubuntu-24.04-arm-4' run: | sudo apt-get update sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf libasound2-dev @@ -102,7 +104,7 @@ jobs: - name: install Rust stable uses: dtolnay/rust-toolchain@stable with: - targets: ${{ matrix.platform == 'depot-macos-latest' && 'aarch64-apple-darwin' || '' }} + targets: ${{ matrix.platform == 'depot-macos-latest' && 'aarch64-apple-darwin' || (matrix.platform == 'depot-ubuntu-24.04-arm-4' && 'aarch64-unknown-linux-gnu' || '') }} - name: install frontend dependencies run: bun install diff --git a/.github/workflows/tauri-release.yaml b/.github/workflows/tauri-release.yaml index 48d7cc67..61759b1a 100644 --- a/.github/workflows/tauri-release.yaml +++ b/.github/workflows/tauri-release.yaml @@ -79,6 +79,8 @@ jobs: args: "--target aarch64-apple-darwin" - platform: "depot-ubuntu-22.04-4" args: "" + - platform: "depot-ubuntu-24.04-arm-4" + args: "--target aarch64-unknown-linux-gnu" runs-on: ${{ matrix.platform }} steps: @@ -89,7 +91,7 @@ jobs: ssh-private-key: ${{ secrets.TS_CLONE_DEPLOY_KEY }} - name: install dependencies (ubuntu only) - if: matrix.platform == 'depot-ubuntu-22.04-4' # This must match the platform value defined above. + if: matrix.platform == 'depot-ubuntu-22.04-4' || matrix.platform == 'depot-ubuntu-24.04-arm-4' run: | sudo apt-get update sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf libasound2-dev @@ -107,8 +109,8 @@ jobs: - name: install Rust stable uses: dtolnay/rust-toolchain@stable # Set this to dtolnay/rust-toolchain@nightly with: - # Those targets are only used on macos runners so it's in an `if` to slightly speed up windows and linux builds. - targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin' || '' }} + # Targets are set for macOS and ARM Linux runners to enable cross-compilation. + targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin' || (matrix.platform == 'depot-ubuntu-24.04-arm-4' && 'aarch64-unknown-linux-gnu' || '') }} - name: Rust cache uses: swatinem/rust-cache@v2