-
Notifications
You must be signed in to change notification settings - Fork 2
60 lines (48 loc) · 1.57 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: Android
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
instrumented_tests:
name: Run Scripts
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: Setup Android SDK
uses: amyu/setup-android@v3
with:
sdk-version: 34
build-tools-version: 34.0.0
cmake-version: 3.10.2.4988404
ndk-version: 26.1.10909125
- name: rust toolchain setup
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: install cargo ndk
uses: actions-rs/cargo@v1
with:
command: install
args: cargo-ndk
- uses: Swatinem/rust-cache@v2
- name: setup build targets
run: rustup target add aarch64-linux-android armv7-linux-androideabi i686-linux-android x86_64-linux-android aarch64-apple-ios x86_64-apple-ios
- name: Build Android Cargo
run: ./gradlew cargoBuild
env:
ANDROID_NDK_HOME: ${{ env.ANDROID_SDK_ROOT }}/ndk/26.1.10909125
TOOLCHAIN: ${{ env.ANDROID_SDK_ROOT }}/ndk/26.1.10909125/toolchains/llvm/prebuilt/darwin-x86_64
RANLIB: ${{ env.ANDROID_SDK_ROOT }}/ndk/26.1.10909125/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-ranlib
- name: Build with Gradle
run: ./gradlew build
- name: Build Debug APK
run: ./gradlew assembleDebug