chore: move winget submission to local OAuth #144
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, master] | |
| pull_request: | |
| branches: [main, master] | |
| jobs: | |
| check-and-build: | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: Cache Rust | |
| uses: Swatinem/rust-cache@v2 | |
| with: | |
| workspaces: src-tauri | |
| save-if: ${{ github.ref == 'refs/heads/main' }} | |
| - name: Install bun | |
| uses: oven-sh/setup-bun@v2 | |
| - name: Cache bun dependencies | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.bun/install/cache | |
| key: bun-${{ runner.os }}-${{ hashFiles('bun.lock') }} | |
| restore-keys: bun-${{ runner.os }}- | |
| - name: Install frontend dependencies | |
| run: bun install --frozen-lockfile | |
| - name: TypeScript typecheck | |
| run: bun run typecheck | |
| - name: Frontend tests | |
| run: bun test | |
| - name: Build frontend | |
| run: bun run build | |
| - name: Cargo test | |
| working-directory: src-tauri | |
| run: cargo test | |
| - name: Cargo clippy | |
| working-directory: src-tauri | |
| run: cargo clippy -- -W clippy::all | |
| - name: Build Tauri app | |
| uses: tauri-apps/tauri-action@v0 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }} | |
| TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }} | |
| - name: Upload artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: whisperi-windows | |
| path: | | |
| src-tauri/target/release/bundle/nsis/*.exe | |
| if-no-files-found: warn |