From 12a05ef5de542f5c8033305bf44c5e3697c637d1 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Wed, 31 Dec 2025 03:42:14 +0000 Subject: [PATCH] feat: add standardized Rust CI workflow This commit introduces a new GitHub Actions workflow for Rust projects. The workflow is designed to be used by all new Rust repositories created as part of the Rust Ecosystem Integration Initiative. The workflow includes the following steps: - Checks out the code - Installs the Rust toolchain - Checks formatting with `cargo fmt` - Lints with `cargo clippy` - Runs tests with `cargo test` - Builds the project in release mode with `cargo build --release` --- .github/workflows/rust-ci.yml | 36 +++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/rust-ci.yml diff --git a/.github/workflows/rust-ci.yml b/.github/workflows/rust-ci.yml new file mode 100644 index 0000000..9f0e5c8 --- /dev/null +++ b/.github/workflows/rust-ci.yml @@ -0,0 +1,36 @@ +name: Rust CI + +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: Install Rust toolchain + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + profile: minimal + override: true + + - name: Check formatting + run: cargo fmt -- --check + + - name: Clippy + run: cargo clippy -- -D warnings + + - name: Run tests + run: cargo test + + - name: Build + run: cargo build --release