Skip to content

Commit

Permalink
github: add a job to build ch4 with no rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
r-bk committed Jul 12, 2024
1 parent 23eb1eb commit 7ddb6bb
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,35 @@ jobs:
- name: lint ch4
run: cargo clippy --no-default-features --features ${{ matrix.feature }} -- -D warnings

no-rustfmt:
runs-on: ubuntu-latest
env:
RUSTFLAGS: --deny warnings
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@v1
with:
toolchain: stable
- name: remove rustfmt
run: |
if which rustfmt; then
rm $(which rustfmt)
echo "remove-rustfmt: OK"
fi
if which rustfmt; then
echo "remove-rustfmt: VERIFY ERR"
exit 1
fi
shell: bash
- name: build without rustfmt
run: cargo build --all-targets

- name: test without rustfmt
run: cargo build --all-targets

- name: check without rustfmt
run: cargo check --all-targets

common-ci:
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 7ddb6bb

Please sign in to comment.