feat(run): preflight validation before compute (Phase 1) #60
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 | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| concurrency: | |
| group: ci-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build-test: | |
| name: build + test (${{ matrix.os }}) | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| defaults: | |
| run: | |
| working-directory: rust/mumdia | |
| steps: | |
| - uses: actions/checkout@v4 | |
| # rust-toolchain.toml (in rust/mumdia) pins the exact toolchain; rustup | |
| # installs it automatically on first cargo invocation. | |
| - name: Cache cargo | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.cargo/registry | |
| ~/.cargo/git | |
| rust/mumdia/target | |
| key: ${{ runner.os }}-cargo-${{ hashFiles('rust/mumdia/Cargo.lock') }} | |
| restore-keys: ${{ runner.os }}-cargo- | |
| - name: Build (release) | |
| run: cargo build --release --locked | |
| - name: Test | |
| run: cargo test --locked |