From 7ddb6bbf151cec95358e48741ef61011889bcbb7 Mon Sep 17 00:00:00 2001 From: Rafael Buchbinder Date: Fri, 12 Jul 2024 08:58:43 +0300 Subject: [PATCH] github: add a job to build ch4 with no rustfmt --- .github/workflows/ci.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 93d0a77..31d4ad4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: