Commit 2152d9f 1 parent fe5fdd3 commit 2152d9f Copy full SHA for 2152d9f
File tree 1 file changed +16
-1
lines changed
1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change 21
21
- os : ubuntu-latest
22
22
target : x86_64-unknown-linux-musl
23
23
label : x86_64 musl
24
+ - os : ubuntu-latest
25
+ target : aarch64-unknown-linux-gnu
26
+ label : arm64 gnu
27
+ - os : ubuntu-latest
28
+ target : aarch64-unknown-linux-musl
29
+ label : arm64 musl
24
30
- os : windows-latest
25
31
target : x86_64-pc-windows-msvc
26
32
label : x86_64
36
42
if : ${{ runner.os == 'Linux' }}
37
43
uses : awalsh128/cache-apt-pkgs-action@v1
38
44
with :
39
- packages : musl-tools # provides musl-gcc
45
+ packages : musl-tools crossbuild-essential-arm64 crossbuild-essential-armhf # provides musl-gcc and arm64 linker
40
46
version : 1.0
47
+ - name : Configure linker
48
+ if : ${{ runner.os === 'Linux' }}
49
+ run : |
50
+ cat >>~/.cargo/config <<EOF
51
+ [target.aarch64-unknown-linux-gnu]
52
+ linker = "aarch64-linux-gnu-gcc"
53
+ [target.aarch64-unknown-linux-musl]
54
+ linker = "aarch64-linux-gnu-gcc"
55
+ EOF
41
56
- name : Test
42
57
run : cargo test --target=${{ matrix.target }}
43
58
You can’t perform that action at this time.
0 commit comments