disable windows CI workflows for now #2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| # This workflow runs tests, formatting checks, and the fspec tool. | |
| # To require passing CI for merges to master/main: | |
| # 1. Go to Settings > Branches in your GitHub repository | |
| # 2. Add a branch protection rule for master/main | |
| # 3. Enable "Require status checks to pass before merging" | |
| # 4. Select "Test Suite" as the required status check | |
| # | |
| # Note: Branch protection cannot be configured via files alone - it requires | |
| # repository settings access. However, this workflow will fail if tests don't pass, | |
| # which effectively enforces the requirement. | |
| on: | |
| push: | |
| branches: [ master, main ] | |
| pull_request: | |
| branches: [ master, main ] | |
| workflow_dispatch: # Allows manual triggering from GitHub Actions UI | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| test: | |
| name: Test Suite | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: rustfmt | |
| - name: Cache cargo registry | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ${{ runner.home }}/.cargo/bin/ | |
| ${{ runner.home }}/.cargo/registry/index/ | |
| ${{ runner.home }}/.cargo/registry/cache/ | |
| ${{ runner.home }}/.cargo/git/db/ | |
| target/ | |
| key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-cargo- | |
| - name: Check formatting | |
| run: cargo fmt --all -- --check | |
| - name: Run tests | |
| run: cargo test --workspace --all-features | |
| - name: Run fspec tool | |
| run: cargo run | |
| working-directory: ${{ github.workspace }} | |