73 lines
2.2 KiB
YAML
73 lines
2.2 KiB
YAML
name: 'release-windows'
|
|
|
|
on:
|
|
workflow_dispatch
|
|
|
|
jobs:
|
|
release-windows:
|
|
permissions:
|
|
contents: write
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
include:
|
|
- platform: 'windows-2025'
|
|
args: '--target x86_64-pc-windows-msvc --verbose'
|
|
arch: 'arm64'
|
|
type: 'x86_64'
|
|
- platform: "windows-11-arm"
|
|
args: "--target aarch64-pc-windows-msvc --verbose"
|
|
arch: 'arm64'
|
|
type: 'aarch64'
|
|
|
|
runs-on: ${{ matrix.platform }}
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: setup node
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: lts/*
|
|
cache: 'npm'
|
|
|
|
- name: install Rust stable
|
|
uses: dtolnay/rust-toolchain@stable
|
|
with:
|
|
targets: ${{ matrix.type == 'aarch64' && 'aarch64-pc-windows-msvc' || 'x86_64-pc-windows-msvc' }}
|
|
|
|
- name: Rust cache
|
|
uses: swatinem/rust-cache@v2
|
|
with:
|
|
workspaces: './src-tauri -> target'
|
|
|
|
- name: install dependencies (windows only)
|
|
run: |
|
|
cargo install trusted-signing-cli
|
|
|
|
- name: install frontend dependencies
|
|
run: npm install
|
|
|
|
- uses: KamaranL/add-signtool-action@v1
|
|
id: signtool
|
|
|
|
- uses: tauri-apps/tauri-action@v0
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
# for windows signing
|
|
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
|
|
AZURE_CLIENT_SECRET: ${{ secrets.AZURE_CLIENT_SECRET }}
|
|
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
|
|
# SIGNTOOL_PATH: 'C:\Program Files (x86)\Windows Kits\10\bin\signtool.exe'
|
|
|
|
# for updates
|
|
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
|
|
TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}
|
|
with:
|
|
tagName: v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version.
|
|
releaseName: 'v__VERSION__'
|
|
releaseBody: 'See the assets to download this version and install.'
|
|
releaseDraft: true
|
|
prerelease: false
|
|
args: ${{ matrix.args }}
|