Skip to content

Commit 06d63ca

Browse files
committed
ci: use native ARM runner for faster Linux ARM builds
Switch from cross-compilation on x86_64 to native ARM runner, which improves build speed and reliability for Linux ARM binary distribution.
1 parent 423778c commit 06d63ca

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ jobs:
103103
target: x86_64-pc-windows-msvc
104104
- host: blacksmith-4vcpu-ubuntu-2404
105105
target: x86_64-unknown-linux-gnu
106-
- host: blacksmith-4vcpu-ubuntu-2404
106+
- host: blacksmith-8vcpu-ubuntu-2404-arm
107107
target: aarch64-unknown-linux-gnu
108108
runs-on: ${{ matrix.settings.host }}
109109
steps:
@@ -148,12 +148,6 @@ jobs:
148148
sudo apt-get update
149149
sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
150150
151-
- name: install cross toolchain (aarch64)
152-
if: matrix.settings.target == 'aarch64-unknown-linux-gnu'
153-
run: |
154-
sudo apt-get update
155-
sudo apt-get install -y gcc-aarch64-linux-gnu g++-aarch64-linux-gnu libc6-dev-arm64-cross
156-
157151
- name: install Rust stable
158152
uses: dtolnay/rust-toolchain@stable
159153
with:
@@ -198,8 +192,6 @@ jobs:
198192
releaseAssetNamePattern: opencode-desktop-[platform]-[arch][ext]
199193
env:
200194
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
201-
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER: ${{ matrix.settings.target == 'aarch64-unknown-linux-gnu' && 'aarch64-linux-gnu-gcc' || '' }}
202-
PKG_CONFIG_ALLOW_CROSS: ${{ matrix.settings.target == 'aarch64-unknown-linux-gnu' && '1' || '' }}
203195
TAURI_BUNDLER_NEW_APPIMAGE_FORMAT: true
204196
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
205197
TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}

0 commit comments

Comments
 (0)