mirror of
https://github.com/tiann/KernelSU.git
synced 2025-02-20 11:43:32 +08:00
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](actions/checkout@v3...v4)
34 lines
617 B
YAML
34 lines
617 B
YAML
name: Rustfmt check
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- 'main'
|
|
paths:
|
|
- '.github/workflows/rustfmt.yml'
|
|
- 'userspace/ksud/**'
|
|
pull_request:
|
|
branches:
|
|
- 'main'
|
|
paths:
|
|
- '.github/workflows/rustfmt.yml'
|
|
- 'userspace/ksud/**'
|
|
|
|
permissions:
|
|
checks: write
|
|
|
|
jobs:
|
|
format:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: dtolnay/rust-toolchain@nightly
|
|
with:
|
|
components: rustfmt
|
|
|
|
- uses: LoliGothick/rustfmt-check@master
|
|
with:
|
|
token: ${{ github.token }}
|
|
working-directory: userspace/ksud
|