diff --git a/.github/workflows/cargo_machete.yml b/.github/workflows/cargo_machete.yml new file mode 100644 index 0000000..71b959a --- /dev/null +++ b/.github/workflows/cargo_machete.yml @@ -0,0 +1,17 @@ +name: Cargo Machete + +on: + push: + branches: + - "main" + pull_request: + types: [opened, synchronize] + +jobs: + cargo-machete: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Machete + uses: bnjbvr/cargo-machete@main diff --git a/scripts/template_update.py b/scripts/template_update.py index 201871e..47f6529 100755 --- a/scripts/template_update.py +++ b/scripts/template_update.py @@ -59,6 +59,7 @@ # Files required by Rust, but not by _both_ C++ and Python RUST_FILES = { + ".github/workflows/cargo_machete.yml", ".github/workflows/rust.yml", "bacon.toml", "Cargo.lock",