release workflow
This commit is contained in:
parent
fd5e50b628
commit
692bee88b8
2 changed files with 54 additions and 2 deletions
4
.github/workflows/format.yml
vendored
4
.github/workflows/format.yml
vendored
|
|
@ -1,4 +1,4 @@
|
|||
name: Check Formatting
|
||||
name: Build and Lint
|
||||
|
||||
on:
|
||||
push:
|
||||
|
|
@ -48,4 +48,4 @@ jobs:
|
|||
uses: ./.github/actions/setup-packages
|
||||
|
||||
- name: Run Clippy
|
||||
run: cargo clippy --all-targets --all-features
|
||||
run: cargo clippy --all-targets --all-features -- -D warnings
|
||||
|
|
|
|||
52
.github/workflows/release.yml
vendored
Normal file
52
.github/workflows/release.yml
vendored
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
name: Release Build
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
publish-tauri:
|
||||
permissions:
|
||||
contents: write
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
include:
|
||||
- platform: macos-latest # ARM
|
||||
args: --target aarch64-apple-darwin
|
||||
- platform: macos-latest # Intel
|
||||
args: --target x86_64-apple-darwin
|
||||
- platform: ubuntu-22.04
|
||||
args: ''
|
||||
- platform: windows-latest
|
||||
args: ''
|
||||
|
||||
runs-on: ${{ matrix.platform }}
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Setup pnpm
|
||||
uses: ./.github/actions/setup-pnpm
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Setup Rust
|
||||
uses: ./.github/actions/setup-rust
|
||||
with:
|
||||
# Those targets are only used on macos runners so it's in an `if` to slightly speed up windows and linux builds.
|
||||
target: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}
|
||||
save-cache: true
|
||||
restore-cache: true
|
||||
|
||||
- name: Setup Packages
|
||||
uses: ./.github/actions/setup-packages
|
||||
|
||||
- uses: tauri-apps/tauri-action@v0
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
projectPath: ./apps/desktop
|
||||
tagName: onelauncher-__VERSION__
|
||||
releaseName: OneLauncher __VERSION__
|
||||
releaseDraft: true
|
||||
prerelease: false
|
||||
args: ${{ matrix.args }}
|
||||
Loading…
Add table
Reference in a new issue