name: CI on: push: pull_request: jobs: test: name: Build and test runs-on: ${{ matrix.os }} strategy: matrix: os: [ubuntu-latest, Windows] steps: - name: Checkout repository uses: actions/checkout@v4 - name: Install Rust uses: dtolnay/rust-toolchain@stable - name: Cache cargo registry and git index uses: actions/cache@v4 with: path: | ~/.cargo/registry ~/.cargo/git key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} - name: Build and test run: cargo test --workspace --verbose