ci+chore: assemble updater latest.json + auto-publish, bump to 0.1.1 #26
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: | |
| jobs: | |
| build: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [macos-latest, windows-latest, ubuntu-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v3 | |
| with: { version: 9 } | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version-file: ".nvmrc" | |
| cache: pnpm | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: { toolchain: "1.90.0", components: "rustfmt,clippy" } | |
| - uses: Swatinem/rust-cache@v2 | |
| with: { workspaces: "src-tauri -> target" } | |
| - name: Install Linux build deps | |
| if: runner.os == 'Linux' | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y libwebkit2gtk-4.1-dev libssl-dev libgtk-3-dev \ | |
| libayatana-appindicator3-dev librsvg2-dev libsoup-3.0-dev | |
| - run: pnpm install --frozen-lockfile | |
| - run: pnpm typecheck | |
| - name: Rust check | |
| working-directory: src-tauri | |
| run: cargo check --all-targets | |
| - name: Rust clippy | |
| working-directory: src-tauri | |
| run: cargo clippy --all-targets -- -D warnings | |
| - name: Rust tests | |
| working-directory: src-tauri | |
| run: cargo test |