Simplify the demo caption #21
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: | |
| # CI only reads the repo; least-privilege token. | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| # Full gates on the launch platform. | |
| windows: | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-node@v5 | |
| with: | |
| node-version: 22 | |
| cache: npm | |
| cache-dependency-path: ui/package-lock.json | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: rustfmt, clippy | |
| - uses: Swatinem/rust-cache@v2 | |
| - run: npm ci | |
| working-directory: ui | |
| - run: npm run lint | |
| working-directory: ui | |
| - run: npm run format:check | |
| working-directory: ui | |
| # tsc + vite; also produces ui/dist, which tauri::generate_context! | |
| # embeds at compile time — must run before any cargo build of the app. | |
| - run: npm run build | |
| working-directory: ui | |
| - run: cargo fmt --all -- --check | |
| - run: cargo clippy --workspace --all-targets --locked -- -D warnings | |
| - run: cargo test --workspace --locked | |
| # The portable crates must keep compiling off-Windows (no features, no UI). | |
| portable: | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macos-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: dtolnay/rust-toolchain@stable | |
| - uses: Swatinem/rust-cache@v2 | |
| - run: cargo check -p mathom-core -p mathom-scanner -p mathom-scanner-ntfs --locked |