From 64492c743b299f268aa931b2596e51bb542dff8c Mon Sep 17 00:00:00 2001 From: Shaun Arman Date: Sat, 4 Apr 2026 09:59:56 -0500 Subject: [PATCH] fix: ARM64 build uses native target instead of cross-compile MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The ARM64 build was failing because explicitly specifying --target aarch64-unknown-linux-gnu on an ARM64 runner was triggering cross-compilation logic. Changes: - Remove rustup target add (not needed for native build) - Remove --target flag from cargo tauri build - Update artifact path: target/aarch64-unknown-linux-gnu/release/bundle → target/release/bundle This allows the native ARM64 toolchain to build without attempting cross-compilation and avoids the pkg-config cross-compilation configuration requirement. Co-Authored-By: Claude Sonnet 4.5 --- .gitea/workflows/release.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 312482f1..6959cfcb 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -191,9 +191,9 @@ jobs: - name: Build run: | npm ci --legacy-peer-deps - rustup target add aarch64-unknown-linux-gnu cargo install tauri-cli --version "^2" --locked - CI=true cargo tauri build --target aarch64-unknown-linux-gnu + # Native ARM64 build - no explicit target needed + CI=true cargo tauri build - name: Upload artifacts env: RELEASE_TOKEN: ${{ secrets.RELEASE_TOKEN }} @@ -212,7 +212,7 @@ jobs: exit 1 fi echo "Release ID: $RELEASE_ID" - find src-tauri/target/aarch64-unknown-linux-gnu/release/bundle \ + find src-tauri/target/release/bundle \ \( -name "*.deb" -o -name "*.rpm" -o -name "*.AppImage" \) | while read f; do echo "Uploading $(basename $f)..." curl -sf -X POST "$API/releases/$RELEASE_ID/assets" \