@@ -12,10 +12,18 @@ jobs:
12
12
fail-fast : false
13
13
matrix :
14
14
include :
15
- - target : x86_64-pc-windows-gnu
15
+ - target : x86_64-pc-windows-msvc
16
16
os : windows
17
17
- target : x86_64-unknown-linux-musl
18
18
os : linux
19
+ - target : x86_64-apple-darwin
20
+ os : macos
21
+ - target : aarch64-apple-darwin
22
+ os : macos
23
+ - target : aarch64-linux-android
24
+ os : android
25
+ - target : aarch64-unknown-linux-gnu
26
+ os : raspi
19
27
steps :
20
28
- uses : actions/checkout@v4
21
29
- name : Setup Rust
@@ -26,15 +34,29 @@ jobs:
26
34
- name : Install Windows toolchain
27
35
if : matrix.os == 'windows'
28
36
run : |
29
- sudo apt-get update
30
- sudo apt-get install -y g++-mingw-w64-x86-64-win32
31
- rustup target add x86_64-pc-windows-gnu
32
- - name : Install Linux musl toolchain
37
+ rustup target add x86_64-pc-windows-msvc
38
+ - name : Install MacOS toolchain
39
+ if : matrix.os == 'macos'
40
+ run : |
41
+ rustup target add x86_64-apple-darwin aarch64-apple-darwin
42
+ - name : Install Linux toolchain
33
43
if : matrix.os == 'linux'
34
44
run : |
35
- sudo apt-get update
36
- sudo apt-get install -y musl-tools
45
+ sudo apt update
46
+ sudo apt install -y musl-tools
37
47
rustup target add x86_64-unknown-linux-musl
48
+ - name : Install Android toolchain
49
+ if : matrix.os == 'android'
50
+ run : |
51
+ sudo apt update
52
+ sudo apt install -y android-ndk
53
+ rustup target add aarch64-linux-android
54
+ - name : Install Raspi toolchain
55
+ if : matrix.os == 'raspi'
56
+ run : |
57
+ sudo apt update
58
+ sudo apt install -y gcc-aarch64-linux-gnu
59
+ rustup target add aarch64-unknown-linux-gnu
38
60
- name : Build
39
61
run : cargo build --release --target ${{ matrix.target }}
40
62
- name : Upload artifact
0 commit comments