From cc3afa1d46460d731a8cc60116c46fcdfd935b2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?flora=20=7E=20=F0=9F=8F=B3=EF=B8=8F=E2=80=8D=E2=9A=A7?= =?UTF-8?q?=EF=B8=8F=20=E2=9D=A4=20=F0=9F=A6=80?= <35181375+tascord@users.noreply.github.com> Date: Fri, 3 Oct 2025 23:49:00 +1000 Subject: [PATCH] Add cargo check step to Rust CI workflow Added a step to run cargo check with warnings as errors. --- .github/workflows/rust.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/rust.yml diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml new file mode 100644 index 0000000..fcbef82 --- /dev/null +++ b/.github/workflows/rust.yml @@ -0,0 +1,22 @@ +name: Rust + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +env: + CARGO_TERM_COLOR: always + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Run check + run: CARGO_BUILD_RUSTFLAGS='-D warnings' cargo check --verbose + - name: Build + run: cargo build --verbose