-
Notifications
You must be signed in to change notification settings - Fork 0
ci: add cross platform release #11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
e3df81b
ci: improve robustness and move away from tauri action
InkedCat d1d9bab
chore: break down linting scripts
InkedCat a896776
chore: fall back to three 179 for postprocessing
InkedCat 4ca51dc
ci: remove skippable build step
InkedCat 4a09d3c
chore: move license-check script
InkedCat b3239d5
ci: add missing env variable
InkedCat c4cdd6f
release wip
InkedCat 34ff410
ci: update test command
InkedCat 3751a13
ci: update environment variable name
InkedCat 1a80c70
ci: add Microsoft client ID to build environment
InkedCat 6b2b747
wip release
InkedCat 192e19f
release wip
InkedCat c517328
wip release
InkedCat c4d8222
wip release
InkedCat 1d20b97
wip release
InkedCat 54ab3b9
wip release
InkedCat aa54d7b
wip release
InkedCat 7d8ffb9
wip release
InkedCat 9a6f30b
wip release
InkedCat af81494
wip release
InkedCat 5ff6be7
wip release
InkedCat 3f24e9a
wip release
InkedCat 8372000
wip release
InkedCat 1d402c1
wip release
InkedCat 3e10d7b
chore: update deps
InkedCat caa6c2b
chore(tauri): scope bundling
InkedCat 6c82902
chore(tauri): enforce csp rules
InkedCat f50e444
ci: bundle dmg for macOS
InkedCat 8d64246
feat: bump versions
InkedCat 07fef2b
chore(tauri): add dmg packaging for macOS
InkedCat 9a3e5b9
ci: fix workflow trigger
InkedCat 8a3ff87
ci: remove unused permissions
InkedCat d2e4338
ci: default permissions
InkedCat File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,140 @@ | ||
| name: VaultLauncher CD | ||
|
|
||
| on: | ||
| push: | ||
| branches: [ main, next ] | ||
|
|
||
| permissions: | ||
| contents: read | ||
| pull-requests: read | ||
|
|
||
| env: | ||
| CARGO_TERM_COLOR: always | ||
|
|
||
| jobs: | ||
| build: | ||
| name: Build | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| include: | ||
| - platform: 'macos-15' # for Arm based macs (M1 and above). | ||
| args: '--target aarch64-apple-darwin' | ||
| arch: 'aarch64-apple-darwin' | ||
| - platform: 'macos-15' # for Intel based macs. | ||
| args: '--target x86_64-apple-darwin' | ||
| arch: 'x86_64-apple-darwin' | ||
| - platform: 'ubuntu-24.04' | ||
| args: '' | ||
| arch: '' | ||
| - platform: 'windows-2022' | ||
| args: '' | ||
| arch: '' | ||
| runs-on: ${{ matrix.platform }} | ||
| steps: | ||
| - name: Checkout source code | ||
| uses: actions/checkout@v5 | ||
|
|
||
| - name: Setup Rust stable | ||
| uses: dtolnay/rust-toolchain@stable | ||
| with: | ||
| targets: ${{ matrix.platform == 'macos-15' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }} | ||
|
|
||
| - name: Setup Rust cache | ||
| uses: swatinem/rust-cache@v2 | ||
| with: | ||
| cache-on-failure: true | ||
| workspaces: './src-tauri -> target' | ||
|
|
||
| - name: Install pnpm | ||
| uses: pnpm/action-setup@v4 | ||
|
|
||
| - name: Use Node.js 24 | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: 24 | ||
| cache: pnpm | ||
|
|
||
| - name: Install Frontend dependencies | ||
| run: pnpm install --frozen-lockfile | ||
|
|
||
| - name: Install Linux dependencies | ||
| if: matrix.platform == 'ubuntu-24.04' | ||
| run: | | ||
| sudo apt-get update | ||
| sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev | ||
|
|
||
| - name: Build VaultLauncher App | ||
| uses: tauri-apps/tauri-action@v0 | ||
| env: | ||
| MICROSOFT_CLIENT_ID: ${{ secrets.MICROSOFT_APP_ID }} | ||
| with: | ||
| args: ${{ matrix.args }} | ||
|
|
||
| - name: Upload Windows Artifacts | ||
| uses: actions/upload-artifact@v4 | ||
| if: matrix.platform == 'windows-2022' | ||
| with: | ||
| name: "${{ github.run_id }}-VaultLauncher-${{ matrix.platform }}" | ||
| path: src-tauri/target/release/bundle/nsis | ||
|
|
||
| - name: Upload Linux Artifacts | ||
| uses: actions/upload-artifact@v4 | ||
| if: matrix.platform == 'ubuntu-24.04' | ||
| with: | ||
| name: "${{ github.run_id }}-VaultLauncher-${{ matrix.platform }}" | ||
| path: src-tauri/target/release/bundle/appimage/*.AppImage | ||
|
|
||
| - name: Upload macOS Artifacts | ||
| uses: actions/upload-artifact@v4 | ||
| if: matrix.platform == 'macos-15' | ||
| with: | ||
| name: "${{ github.run_id }}-VaultLauncher-${{ matrix.platform }}-${{ matrix.args }}" | ||
| path: | | ||
| src-tauri/target/${{ matrix.arch }}/release/bundle/macos | ||
| src-tauri/target/${{ matrix.arch }}/release/bundle/dmg | ||
|
|
||
| release: | ||
| permissions: | ||
| contents: write # to be able to publish a GitHub release | ||
| issues: write # to be able to comment on released issues | ||
| pull-requests: write # to be able to comment on released pull requests | ||
| name: Release | ||
| needs: build | ||
| runs-on: ubuntu-24.04 | ||
| steps: | ||
| - name : Checkout source code | ||
| uses: actions/checkout@v5 | ||
|
|
||
| - uses: actions/create-github-app-token@v2 | ||
| id: app-token | ||
| with: | ||
| app-id: ${{ vars.APP_ID }} | ||
| private-key: ${{ secrets.APP_PRIVATE_KEY }} | ||
|
|
||
| - name: Setup Rust stable | ||
| uses: dtolnay/rust-toolchain@stable | ||
|
|
||
| - name: Install pnpm | ||
| uses: pnpm/action-setup@v4 | ||
|
|
||
| - name: Use Node.js 24 | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: 24 | ||
| cache: pnpm | ||
|
|
||
| - name: Install dependencies | ||
| run: pnpm install --frozen-lockfile | ||
|
|
||
| - name: Download Artifacts | ||
| uses: actions/download-artifact@v4 | ||
| with: | ||
| path: ./bundles | ||
| pattern: "${{ github.run_id }}-VaultLauncher-*" | ||
|
|
||
| - name: Create Release | ||
| run: pnpm semantic-release | ||
| env: | ||
| GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} | ||
|
|
||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| 24 |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| { | ||
| "release": { | ||
| "branches": [ | ||
| "main", | ||
| { | ||
| "name": "next", | ||
| "prerelease": true | ||
| } | ||
| ] | ||
| }, | ||
| "plugins": [ | ||
| "@semantic-release/commit-analyzer", | ||
| "@semantic-release/release-notes-generator", | ||
| "@semantic-release/changelog", | ||
| [ | ||
| "@semantic-release/npm", | ||
| { | ||
| "npmPublish": false | ||
| } | ||
| ], | ||
| [ | ||
| "@semantic-release/exec", | ||
| { | ||
| "prepareCmd": "cargo set-version ${nextRelease.version}" | ||
| } | ||
| ], | ||
| "@semantic-release/git", | ||
| [ | ||
| "@semantic-release/github", | ||
| { | ||
| "assets": [ | ||
| "artifacts/**" | ||
| ] | ||
| } | ||
| ] | ||
| ] | ||
| } |
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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.