This repository was archived by the owner on Oct 29, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-17
lines changed Expand file tree Collapse file tree 1 file changed +3
-17
lines changed Original file line number Diff line number Diff line change @@ -33,32 +33,18 @@ jobs:
33
33
- name : Checkout code
34
34
uses : actions/checkout@v4
35
35
36
- - name : Install dependencies for aarch64 linux
37
- if : matrix.target == 'aarch64-unknown-linux-gnu'
38
- run : sudo apt-get update -y && sudo apt-get install -y g++-aarch64-linux-gnu libc6-dev-arm64-cross
39
-
40
36
- name : Install Rust
41
37
uses : actions-rust-lang/setup-rust-toolchain@v1
42
38
with :
43
39
toolchain : stable
44
40
target : ${{ matrix.target }}
45
41
46
- - name : Add target
42
+ - name : Install cross crate
47
43
run : |
48
- rustup target add ${{ matrix.target }}
49
- rustup toolchain install stable-${{ matrix.target }}
44
+ cargo install -f cross
50
45
51
46
- name : Build for non-aarch64 linux
52
- if : matrix.target != 'aarch64-unknown-linux-gnu'
53
- run : cargo build --release --target ${{ matrix.target }}
54
-
55
- - name : Build for aarch64 linux
56
- if : matrix.target == 'aarch64-unknown-linux-gnu'
57
- run : cargo build --release --target ${{ matrix.target }}
58
- env :
59
- CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER : aarch64-linux-gnu-gcc
60
- CC_aarch64_unknown_linux_gnu : aarch64-linux-gnu-gcc
61
- CXX_aarch64_unknown_linux_gnu : aarch64-linux-gnu-g++
47
+ run : cross build --release --target ${{ matrix.target }}
62
48
63
49
- name : Upload unix-like binaries to release
64
50
uses : svenstaro/upload-release-action@v2
You can’t perform that action at this time.
0 commit comments