You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Basic actions that must pass before we kick off more expensive tests.
32
+
basics:
33
+
name: basic checks
34
+
runs-on: ubuntu-latest
35
+
needs:
36
+
- fmt
37
+
- minrust
38
+
steps:
39
+
- run: exit 0
40
+
41
+
# enforce standard Rust formating (rustfmt)
42
+
fmt:
43
+
name: fmt
44
+
runs-on: ubuntu-latest
45
+
steps:
46
+
- uses: actions/checkout@v5
47
+
- name: Install Rust ${{ env.rust_stable }}
48
+
uses: dtolnay/rust-toolchain@stable
49
+
with:
50
+
toolchain: ${{ env.rust_stable }}
51
+
components: rustfmt
52
+
# Check fmt
53
+
- name: "rustfmt --check"
54
+
# Workaround for rust-lang/cargo#7732
55
+
run: |
56
+
if ! rustfmt --check --edition ${{ env.rust_edition }} $(git ls-files '*.rs'); then
57
+
printf "Please run \`rustfmt --edition ${{ env.rust_edition }} \$(git ls-files '*.rs')\` to fix rustfmt errors.\nSee CONTRIBUTING.md for more details.\n" >&2
0 commit comments