-
Notifications
You must be signed in to change notification settings - Fork 10
40 lines (36 loc) · 1016 Bytes
/
rust.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
name: Rust
on:
push:
branches: [ main, next ]
pull_request:
branches: [ main, next ]
jobs:
clippy:
name: Clippy on linux x86
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Clippy
run: cargo clippy --verbose
env:
RUSTFLAGS: "-D warnings"
- name: Run tests
run: cargo test --verbose
clippy-android:
name: Clippy on android aarch64
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: sudo apt install unzip
- run: cargo install [email protected]
- name: Setup Android NDK
id: ndk
uses: nttld/[email protected]
with:
ndk-version: r25b
- run: rustup target add aarch64-linux-android
- run: cargo ndk --target aarch64-linux-android --platform 23 clippy
env:
RUST_FLAGS: "-D warnings"
ANDROID_NDK_HOME: ${{ steps.ndk.outputs.ndk-path }}
ANDROID_NDK_ROOT: ${{ steps.ndk.outputs.ndk-path }}