ci: add macos build workflow for testing #1
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 macOS DMG | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: [feature/ringtone-selector] | |
| paths: [".github/workflows/build-macos.yml"] | |
| jobs: | |
| build: | |
| runs-on: macos-latest | |
| timeout-minutes: 60 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: "24.12.0" | |
| - name: Enable corepack | |
| run: corepack enable | |
| - name: Install dependencies | |
| run: pnpm install | |
| - name: Build | |
| run: pnpm build | |
| - name: Build release (DMG) | |
| run: pnpm build-release | |
| env: | |
| CSC_IDENTITY_AUTO_DISCOVERY: "false" | |
| - name: Upload DMG | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: session-desktop-macos | |
| path: release/*.dmg | |
| if-no-files-found: warn | |
| - name: Upload all release artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: session-desktop-release | |
| path: release/session-desktop* | |
| if-no-files-found: warn |