Skip to content

Commit

Permalink
Merge pull request rust-osdev#1348 from nicholasbishop/bishop-fmt
Browse files Browse the repository at this point in the history
ci: Use `cargo xtask fmt --check`
  • Loading branch information
nicholasbishop authored Aug 24, 2024
2 parents 092cab1 + e5d5d50 commit 3218a54
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,16 @@ jobs:
- name: Checkout sources
uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
- name: Run cargo fmt
- name: Install yamlfmt
env:
YFV: "0.13.0"
HASH: "043e96d754a8afa4f4c5c13ffb2f3e50c6be5a70bf53292d3025abc0b42fe4ae"
run: |
rustup component add rustfmt
cargo fmt --all -- --check
curl -L --fail --output /tmp/yamlfmt.tar.xz https://github.com/google/yamlfmt/releases/download/v${YFV}/yamlfmt_${YFV}_Linux_x86_64.tar.gz
echo "${HASH} /tmp/yamlfmt.tar.xz" | sha256sum --check
tar xf /tmp/yamlfmt.tar.xz -C /usr/local/bin yamlfmt
- name: Check formatting
run: cargo xtask fmt --check
- name: Run clippy
run: |
rustup component add clippy
Expand Down Expand Up @@ -131,7 +137,6 @@ jobs:
- uses: Swatinem/rust-cache@v2
- name: Build
run: cargo package -p uefi -p uefi-raw -p uefi-macros

# This job requires the nightly channel, but keep it as a separate job from
# `nightly_channel` because it takes a while to run.
build_feature_permutations:
Expand Down

0 comments on commit 3218a54

Please sign in to comment.