Skip to content

Commit 82ea9b7

Browse files
committed
Fix workflow: use actions-rs/toolchain, add aarch64 linker config
1 parent 51f8299 commit 82ea9b7

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,11 @@ jobs:
3838
- uses: actions/checkout@v4
3939

4040
- name: Install Rust
41-
uses: dtolnay/rust-action@stable
41+
uses: actions-rs/toolchain@v1
4242
with:
43-
targets: ${{ matrix.target }}
43+
toolchain: stable
44+
target: ${{ matrix.target }}
45+
override: true
4446

4547
- name: Install cross-compilation tools
4648
if: matrix.target == 'aarch64-unknown-linux-gnu'
@@ -49,6 +51,8 @@ jobs:
4951
sudo apt-get install -y gcc-aarch64-linux-gnu
5052
5153
- name: Build
54+
env:
55+
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER: aarch64-linux-gnu-gcc
5256
run: cargo build --release --target ${{ matrix.target }}
5357

5458
- name: Package (Unix)

0 commit comments

Comments
 (0)