mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
add a proposed rustfmt check
This commit is contained in:
parent
d510a806de
commit
99a238107b
1 changed files with 19 additions and 0 deletions
19
.github/workflows/rustfmt_check.yml
vendored
Normal file
19
.github/workflows/rustfmt_check.yml
vendored
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
# From https://github.com/samblenny/autofmt-demo/blob/main/.github/workflows/rustfmt_check.yml
|
||||
name: rustfmt_check
|
||||
on: push
|
||||
jobs:
|
||||
rustfmt_check:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out branch source
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install rustfmt from nightly toolchain
|
||||
run: |
|
||||
rustup toolchain install nightly
|
||||
rustup component add rustfmt --toolchain nightly
|
||||
|
||||
- name: Run cargo +nightly fmt --check
|
||||
run: cargo +nightly fmt --check
|
||||
|
||||
- run: echo "status = ${{ job.status }}"
|
||||
Loading…
Reference in a new issue