build(deps): bump the ruffle group with 9 updates #543
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Lint & Format | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
rust: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Rust toolchain | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
toolchain: stable | |
targets: aarch64-linux-android | |
components: rustfmt, clippy | |
- name: Cache Cargo output | |
uses: Swatinem/rust-cache@v2 | |
with: | |
shared-key: clippy | |
save-if: ${{ github.ref == 'refs/heads/main' }} | |
- name: Check formatting | |
run: cargo fmt --all -- --check | |
- name: Install cargo-ndk | |
run: cargo install cargo-ndk | |
- name: Check clippy | |
run: cargo ndk --bindgen -t arm64-v8a -- clippy --all --all-features --tests -- -D warnings | |
android: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 17 | |
uses: actions/[email protected] | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
- uses: gradle/actions/wrapper-validation@v4 | |
name: Validate Gradle Wrapper | |
- name: Check ktlint | |
run: ./gradlew ktlintCheck | |
- name: Check lint | |
run: ./gradlew lint |