File tree Expand file tree Collapse file tree 2 files changed +23
-1
lines changed Expand file tree Collapse file tree 2 files changed +23
-1
lines changed Original file line number Diff line number Diff line change 22
22
cargo fmt --all -- --check
23
23
cargo clippy
24
24
25
+ android :
26
+ name : Check (android)
27
+ runs-on : ubuntu-22.04
28
+ steps :
29
+ - uses : actions/checkout@v4
30
+ - uses : dtolnay/rust-toolchain@stable
31
+ with :
32
+ components : rustfmt,clippy
33
+ - name : Setup Java JDK
34
+
35
+ with :
36
+ java-version : ' 17'
37
+ distribution : ' temurin'
38
+ - name : Setup Android SDK
39
+ uses : android-actions/setup-android@v3
40
+ - name : Add android rust target
41
+ run : rustup target add aarch64-linux-android
42
+ - name : Install Cargo NDK
43
+ run : cargo install cargo-ndk
44
+ - name : Run tests
45
+ run : make jni-check
46
+
25
47
linux-test :
26
48
name : Test (Linux)
27
49
uses : ./.github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ jni: fake
13
13
cargo ndk --target arm64-v8a -o $(ANDROID_DIR ) /app/src/main/jniLibs/ build --profile release
14
14
15
15
jni-check : fake
16
- cargo ndk --target arm64-v8a -o $( ANDROID_DIR ) /app/src/main/jniLibs/ check
16
+ cargo ndk --target arm64-v8a check
17
17
18
18
apk : jni
19
19
cd $(ANDROID_DIR ) && ./gradlew build
You can’t perform that action at this time.
0 commit comments