ci: update workflows (#83)

* ci: update workflows

* Revert
This commit is contained in:
Caner Karaca
2025-01-27 12:13:18 +03:00
committed by GitHub
parent 4ed362bea4
commit 25b57204ef
10 changed files with 93 additions and 65 deletions

View File

@@ -6,13 +6,15 @@ on:
- next
paths:
- '.github/workflows/clippy.yml'
- 'userspace/ksud/**'
- 'userspace/ksud_magic/**'
- 'userspace/ksud_overlayfs/**'
pull_request:
branches:
- main
- next
paths:
- '.github/workflows/clippy.yml'
- 'userspace/ksud/**'
- 'userspace/ksud_magic/**'
- 'userspace/ksud_overlayfs/**'
env:
RUSTFLAGS: '-Dwarnings'
@@ -22,16 +24,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: rustup update --force-non-host stable-x86_64-unknown-linux-gnu
- uses: Swatinem/rust-cache@v2
with:
workspaces: userspace/ksud
- run: rustup update stable
- name: Install cross
run: |
cargo install cross --git https://github.com/cross-rs/cross --rev 66845c1
run: cargo install cross --git https://github.com/cross-rs/cross --rev 66845c1
- name: Run clippy
run: |
cross clippy --manifest-path userspace/ksud/Cargo.toml --target aarch64-linux-android --release
cross clippy --manifest-path userspace/ksud/Cargo.toml --target x86_64-linux-android --release
cross clippy --manifest-path userspace/ksud_magic/Cargo.toml --target aarch64-linux-android --release
cross clippy --manifest-path userspace/ksud_magic/Cargo.toml --target x86_64-linux-android --release
cross clippy --manifest-path userspace/ksud_overlayfs/Cargo.toml --target aarch64-linux-android --release
cross clippy --manifest-path userspace/ksud_overlayfs/Cargo.toml --target x86_64-linux-android --release