From d1a925c2240af4bc67dc01905bb812928f8fdde1 Mon Sep 17 00:00:00 2001 From: bunnie Date: Mon, 15 Jan 2024 01:53:02 +0800 Subject: [PATCH] modify format CI flow to generate template files prior to checks --- .github/workflows/rustfmt_check.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/rustfmt_check.yml b/.github/workflows/rustfmt_check.yml index 876d2965b..364957825 100644 --- a/.github/workflows/rustfmt_check.yml +++ b/.github/workflows/rustfmt_check.yml @@ -18,6 +18,9 @@ jobs: git fetch --no-tags --prune --no-recurse-submodules --depth=1 origin main git checkout origin/main rustfmt.toml + - name: Generate dummy templates so formating checks don't choke on missing xtask-generated files + run: cargo xtask dummy-template + - name: Run cargo +nightly fmt --check run: cargo +nightly fmt --check