Skip to content

Commit 6783819

Browse files
authored
add linux arm64 targets (#51)
This adds a new ubuntu arm64 runner to the matrix and compiles the app and the cli there. For the linux arm64 app, we add the NO_STRIP=true env variable, according to a known limitiation in tauri using linuxdeploy to create appimages linuxdeploy/linuxdeploy#272 The *-musl targets are still cross-compiled with zig. Closes #50
1 parent 50e75a5 commit 6783819

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,11 @@ jobs:
6767
cli_targets: "x86_64-pc-windows-msvc"
6868
gui_target: "x86_64-pc-windows-msvc"
6969
- platform: ubuntu-22.04
70-
cli_targets: "x86_64-unknown-linux-gnu aarch64-unknown-linux-gnu x86_64-unknown-linux-musl aarch64-unknown-linux-musl"
70+
cli_targets: "x86_64-unknown-linux-gnu x86_64-unknown-linux-musl aarch64-unknown-linux-musl"
7171
gui_target: "x86_64-unknown-linux-gnu"
72+
- platform: ubuntu-22.04-arm
73+
cli_targets: "aarch64-unknown-linux-gnu"
74+
gui_target: "aarch64-unknown-linux-gnu"
7275

7376
runs-on: ${{ matrix.platform }}
7477

@@ -80,7 +83,7 @@ jobs:
8083
uses: dtolnay/rust-toolchain@stable
8184

8285
- name: Install Zig
83-
if: startsWith(matrix.platform, 'ubuntu')
86+
if: matrix.platform == 'ubuntu-22.04'
8487
shell: bash
8588
run: |
8689
wget -q https://ziglang.org/download/0.15.2/zig-x86_64-linux-0.15.2.tar.xz
@@ -89,6 +92,7 @@ jobs:
8992
echo "/usr/local/zig" >> $GITHUB_PATH
9093
9194
- name: Install zigbuild
95+
if: matrix.platform == 'ubuntu-22.04'
9296
run: cargo install --locked cargo-zigbuild
9397

9498
- name: Rust cache
@@ -162,6 +166,7 @@ jobs:
162166
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
163167
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
164168
TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}
169+
NO_STRIP: ${{ matrix.platform == 'ubuntu-22.04-arm' && 'true' || '' }}
165170
with:
166171
args: --target ${{ matrix.gui_target }}
167172
tagName: ${{ needs.ensure-release.outputs.release-name }}
@@ -183,7 +188,7 @@ jobs:
183188
echo "Building CLI for $target"
184189
rustup target add "$target"
185190
186-
if [[ "$target" == "aarch64-unknown-linux-gnu" || "$target" == "aarch64-unknown-linux-musl" || "$target" == "x86_64-unknown-linux-musl" ]]; then
191+
if [[ "$target" == "aarch64-unknown-linux-musl" || "$target" == "x86_64-unknown-linux-musl" ]]; then
187192
cargo zigbuild -p tidewave-cli --release --target $target
188193
else
189194
cargo build -p tidewave-cli --release --target $target

0 commit comments

Comments
 (0)