Skip to content

Commit 766b39b

Browse files
authored
Update release.yml
1 parent 3aeb3c7 commit 766b39b

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,14 @@ jobs:
3030
- name: Checkout repository
3131
uses: actions/checkout@v3
3232

33-
- name: Install dependencies
34-
run: sudo apt-get update && sudo apt-get install -y libunwind-dev gcc-aarch64-linux-gnu
33+
- name: Install cross
34+
run: cargo install cross --git https://github.com/cross-rs/cross.git --branch main
3535

36-
- name: Build binary
37-
uses: houseabsolute/actions-rust-cross@v0
38-
with:
39-
command: build
40-
target: ${{ matrix.platform.target }}
41-
toolchain: ${{ matrix.toolchain }}
42-
args: "--release"
43-
strip: true
36+
- name: Add Rust target
37+
run: rustup target add ${{ matrix.platform.target }}
38+
39+
- name: Build binary with cross
40+
run: cross build --release --target ${{ matrix.platform.target }}
4441

4542
- name: Rename binary
4643
run: mv target/${{ matrix.platform.target }}/release/axs target/${{ matrix.platform.target }}/release/${{ matrix.platform.binary_name }}

0 commit comments

Comments
 (0)