fix: ARM64 build uses native target instead of cross-compile
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 <noreply@anthropic.com>
This commit is contained in:
parent
a7903db904
commit
64492c743b
@ -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" \
|
||||
|
||||
Loading…
Reference in New Issue
Block a user