Skip to content

Commit abf3e15

Browse files
committed
fix for aarch64 linux
1 parent 76adc77 commit abf3e15

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ jobs:
3535
run: |
3636
sudo apt-get update
3737
sudo apt-get install -y libasound2-dev libjack-jackd2-dev libxkbcommon-dev protobuf-compiler
38+
sudo apt-get install -y libasound2-dev:arm64 libjack-jackd2-dev:arm64 libxkbcommon-dev:arm64
3839
sudo apt-get install -y gcc-aarch64-linux-gnu g++-aarch64-linux-gnu
3940
4041
- name: Install dependencies (Windows)
@@ -69,10 +70,10 @@ jobs:
6970
if: matrix.platform == 'linux'
7071
working-directory: ./RustApp
7172
run: |
73+
PKG_CONFIG_ALLOW_CROSS=1 PKG_CONFIG_SYSROOT_DIR=/ CC=aarch64-linux-gnu-gcc CXX=aarch64-linux-gnu-g++ cargo build --release --target aarch64-unknown-linux-gnu
74+
cargo packager -r -f appimage --target aarch64-unknown-linux-gnu
7275
cargo build --release --target x86_64-unknown-linux-gnu
7376
cargo packager -r -f appimage --target x86_64-unknown-linux-gnu
74-
PKG_CONFIG_ALLOW_CROSS=1 PKG_CONFIG_SYSROOT_DIR=/ cargo build --release --target aarch64-unknown-linux-gnu
75-
cargo packager -r -f appimage --target aarch64-unknown-linux-gnu
7677
7778
- name: Package (Windows)
7879
if: matrix.platform == 'windows'

RustApp/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,3 +94,6 @@ mslnk = "0.1"
9494

9595
[target.'cfg(target_os = "windows")'.build-dependencies]
9696
winres = "0.1"
97+
98+
[target.aarch64-unknown-linux-gnu]
99+
linker = "aarch64-linux-gnu-gcc"

0 commit comments

Comments
 (0)