Rewrite README: remove emojis, reduce verbosity #3
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: | |
| branches: [main] | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| rust-core: | |
| name: Rust Core Library | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Rust | |
| uses: dtolnay/rust-action@stable | |
| with: | |
| components: clippy | |
| - name: Cache cargo | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.cargo/bin/ | |
| ~/.cargo/registry/index/ | |
| ~/.cargo/registry/cache/ | |
| ~/.cargo/git/db/ | |
| target/ | |
| key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-cargo- | |
| - name: Check | |
| run: cargo check --workspace | |
| - name: Clippy | |
| run: cargo clippy --workspace --all-targets | |
| - name: Test | |
| run: cargo test --workspace | |
| frontend: | |
| name: Frontend | |
| runs-on: macos-latest | |
| defaults: | |
| run: | |
| working-directory: crates/batcherbird-gui | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| cache: 'npm' | |
| cache-dependency-path: crates/batcherbird-gui/package-lock.json | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Type check | |
| run: npx tsc --noEmit | |
| - name: Build frontend | |
| run: npm run build | |
| tauri-app: | |
| name: Tauri App Build | |
| runs-on: macos-latest | |
| needs: [rust-core, frontend] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Rust | |
| uses: dtolnay/rust-action@stable | |
| - name: Cache cargo | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.cargo/bin/ | |
| ~/.cargo/registry/index/ | |
| ~/.cargo/registry/cache/ | |
| ~/.cargo/git/db/ | |
| crates/batcherbird-gui/src-tauri/target/ | |
| key: ${{ runner.os }}-tauri-${{ hashFiles('crates/batcherbird-gui/src-tauri/Cargo.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-tauri- | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| cache: 'npm' | |
| cache-dependency-path: crates/batcherbird-gui/package-lock.json | |
| - name: Install frontend dependencies | |
| working-directory: crates/batcherbird-gui | |
| run: npm ci | |
| - name: Install Tauri CLI | |
| run: cargo install tauri-cli --version "^2.0" --locked || true | |
| - name: Build Tauri app | |
| working-directory: crates/batcherbird-gui | |
| run: cargo tauri build | |
| env: | |
| TAURI_SIGNING_PRIVATE_KEY: "" | |
| TAURI_SIGNING_PRIVATE_KEY_PASSWORD: "" | |
| - name: Upload build artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: batcherbird-macos-ci | |
| path: crates/batcherbird-gui/src-tauri/target/release/bundle/dmg/*.dmg | |
| retention-days: 7 |