-
-
Notifications
You must be signed in to change notification settings - Fork 64
37 lines (35 loc) · 997 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
37
on: [push, pull_request]
name: CI
jobs:
ci:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
rust:
- stable
- beta
- nightly
- 1.73.0 # MSRV
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
targets: aarch64-linux-android, armv7-linux-androideabi
components: rustfmt, clippy
- name: Run build
run: cargo install --path .
- name: Smoke test `ndk-env`
run: cargo ndk-env
- name: Run test
working-directory: example
run: cargo ndk -o jniLibs build -vv
- name: Check code formatting
continue-on-error: true
run: cargo fmt --all -- --check
- name: Run clippy
continue-on-error: true
run: cargo clippy -- -D warnings