Skip to content

Commit

Permalink
Add rustfmt GitHub workflow (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ten0 authored Jun 14, 2024
1 parent 19ff886 commit 51c7bd2
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,17 @@ jobs:
rustup component add miri
- name: Run tests with MIRI
run: cargo miri test

rustfmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup rustfmt-nightly-Compatible Toolchain
run: |
RUSTFMT_NIGHTLY=nightly-$(curl -s https://rust-lang.github.io/rustup-components-history/x86_64-unknown-linux-gnu/rustfmt)
echo "Installing latest nightly with rustfmt: $RUSTFMT_NIGHTLY"
rustup set profile minimal
rustup default "$RUSTFMT_NIGHTLY"
rustup component add rustfmt
- name: Run rustfmt
run: cargo fmt -- --check

0 comments on commit 51c7bd2

Please sign in to comment.