modify format CI flow to generate template files prior to checks

This commit is contained in:
bunnie 2024-01-15 01:53:02 +08:00
parent 9234b11962
commit d1a925c224

View file

@ -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