-
Notifications
You must be signed in to change notification settings - Fork 34
36 lines (31 loc) · 867 Bytes
/
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
name: ci-build
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: nttld/[email protected]
with:
ndk-version: r26b
- uses: actions-rs/[email protected]
with:
toolchain: nightly
override: true
- run: rustup target add
aarch64-linux-android
armv7-linux-androideabi
x86_64-linux-android
i686-linux-android
- run: cargo install cargo-ndk
- run: apt install gcc-multilib
- name: check codes
run: cargo ndk -t arm64-v8a --platform=29 check --verbose --target aarch64-linux-android
- name: run tests
run: cargo ndk -t arm64-v8a --platform=29 test --verbose --target aarch64-linux-android