File tree 1 file changed +13
-1
lines changed
1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -22,15 +22,24 @@ jobs:
22
22
os : macos
23
23
- target : aarch64-unknown-linux-gnu
24
24
os : raspi
25
+ - target : aarch64-linux-android
26
+ os : android
25
27
steps :
26
28
- uses : actions/checkout@v4
29
+ - name : Setup NDK
30
+ if : matrix.os == 'android'
31
+ uses : nttld/setup-ndk@v1
32
+ with :
33
+ ndk-version : r26d
27
34
- name : Setup Rust
28
35
uses : dtolnay/rust-toolchain@stable
29
36
with :
30
37
toolchain : stable
31
38
targets : ${{ matrix.target }}
32
39
components : rust-src rustc-dev llvm-tools-preview
33
- # msvc: ${{ matrix.os == 'windows' }}
40
+ - name : Install Android toolchain
41
+ if : matrix.os == 'android'
42
+ run : rustup target add aarch64-linux-android
34
43
- name : Install Windows toolchain
35
44
if : matrix.os == 'windows'
36
45
run : |
53
62
rustup target add aarch64-unknown-linux-gnu
54
63
- name : Build
55
64
run : cargo build --release --target ${{ matrix.target }}
65
+ env :
66
+ CC_aarch64_linux_android : ${{ env.ANDROID_NDK_HOME }}/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android33-clang
67
+ CXX_aarch64_linux_android : ${{ env.ANDROID_NDK_HOME }}/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android33-clang++
56
68
- name : Upload artifact
57
69
uses : actions/upload-artifact@v4
58
70
with :
You can’t perform that action at this time.
0 commit comments