forked from tiann/KernelSU
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (41 loc) · 1.1 KB
/
clippy.yml
File metadata and controls
48 lines (41 loc) · 1.1 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: Clippy check
on:
push:
branches:
- main
- dev
paths:
- '.github/workflows/clippy.yml'
- 'userspace/**'
pull_request:
branches:
- main
- dev
paths:
- '.github/workflows/clippy.yml'
- 'userspace/**'
env:
RUSTFLAGS: '-Dwarnings'
jobs:
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- run: rustup update stable
- uses: Swatinem/rust-cache@v2
with:
workspaces: userspace/ksud
- uses: nttld/setup-ndk@v1
id: setup-ndk
with:
ndk-version: r29
- name: Run clippy
env:
ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }}
run: |
rustup target add aarch64-linux-android
rustup target add x86_64-linux-android
source .github/scripts/setup-rust-build.sh aarch64-linux-android 26
source .github/scripts/setup-rust-build.sh x86_64-linux-android 26
cargo clippy --target aarch64-linux-android --release
cargo clippy --target x86_64-linux-android --release