Merge pull request #3 from Human-Augment-Analytics/users/haley/parall… #7
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: Build Desktop Application | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - feature/desktop-ci-cd | |
| jobs: | |
| build-tauri: | |
| permissions: | |
| contents: write | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - platform: macos-latest | |
| artifact-name: macOS-dmg | |
| path: target/release/bundle/dmg/*.dmg | |
| - platform: windows-latest | |
| artifact-name: Windows-exe | |
| path: target/release/bundle/nsis/*.exe | |
| runs-on: ${{ matrix.platform }} | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Setup Rust toolchain | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: Rust Cache | |
| uses: swatinem/rust-cache@v2 | |
| with: | |
| workspaces: 'src-tauri -> target' | |
| - name: Build Tauri app | |
| uses: tauri-apps/tauri-action@v0 | |
| id: tauri | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| tagName: v__VERSION__ | |
| releaseName: 'App v__VERSION__' | |
| releaseBody: 'Automatic build from CI/CD pipeline' | |
| releaseDraft: true | |
| prerelease: false | |
| - name: Upload Build Artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: ${{ matrix.artifact-name }} | |
| path: ${{ matrix.path }} |