-
Notifications
You must be signed in to change notification settings - Fork 121
48 lines (45 loc) · 1.21 KB
/
ci_check_android.yml
File metadata and controls
48 lines (45 loc) · 1.21 KB
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
name: Check Android
on:
merge_group:
types: [checks_requested]
push:
branches:
- master
paths:
- '**/*.rs'
- '**/Cargo.toml'
- '.github/workflows/ci_check_android.yml'
pull_request:
branches:
- master
paths:
- '**/*.rs'
- '**/Cargo.toml'
- '.github/workflows/ci_check_android.yml'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
cancel-in-progress: true
jobs:
check_android:
runs-on: ubuntu-latest
strategy:
matrix:
target:
- aarch64-linux-android
- armv7-linux-androideabi
- x86_64-linux-android
steps:
- uses: actions/checkout@v6
- name: Setup Rust Toolchain
run: |
rustup default nightly
rustup target add ${{ matrix.target }}
rustup component add clippy
- uses: taiki-e/install-action@v2
with:
tool: cargo-ndk
- name: Check clippy
shell: bash
run: |
source <(cargo ndk-env --target ${{ matrix.target }})
cargo clippy --target ${{ matrix.target }} --features all,nightly,sync,ring,native-tls-vendored,compat-all --all-targets -- -Dwarnings