From 04aab1294acc767e94629a1bdedb4b66d3780a7c Mon Sep 17 00:00:00 2001 From: Aanish Bhirud Date: Sun, 21 Jun 2026 15:20:29 +0530 Subject: [PATCH] ci: add GitHub Actions build + test workflow The public repository had no CI, so contributor PRs could break the build or tests with no automated gate. Add a workflow that builds and runs the test suite on Linux and macOS (the two supported platforms) for every push to master and every pull request. Scope is intentionally minimal (build + test, per project preference); fmt and clippy gates are deferred to a follow-up that also fixes the existing formatting/lint drift, so this workflow stays green on day one. Co-Authored-By: Claude Opus 4.8 --- .github/workflows/ci.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..2d1e901 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,26 @@ +name: CI + +on: + push: + branches: [master] + pull_request: + +env: + CARGO_TERM_COLOR: always + +jobs: + test: + name: build & test (${{ matrix.os }}) + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest, macos-latest] + steps: + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@stable + - uses: Swatinem/rust-cache@v2 + - name: Build + run: cargo build --locked --verbose + - name: Test + run: cargo test --locked --verbose