v6.9.0 #84
Workflow file for this run
This file contains 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 | |
on: | |
push: | |
branches: [main] | |
tags: ['v*.*.*'] | |
pull_request: | |
branches: [main] | |
jobs: | |
build-win: | |
name: Build Windows | |
runs-on: windows-latest | |
steps: | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: '16' | |
- uses: actions/checkout@v2 | |
- uses: Swatinem/rust-cache@v1 | |
with: | |
working-directory: ./src-tauri | |
target-dir: ./src-tauri/target | |
- name: Build | |
run: | | |
npm ci | |
npm run tauri build | |
- name: Zip | |
run: | | |
cd scripts/zip | |
npm ci | |
cd ../.. | |
node scripts/zip/index.mjs | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: | | |
./src-tauri/target/release/bundle/msi/*.msi | |
*.zip | |
build-mac: | |
name: Build macOS | |
runs-on: macos-latest | |
steps: | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: '16' | |
- uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
target: aarch64-apple-darwin | |
- uses: Swatinem/rust-cache@v1 | |
with: | |
working-directory: ./src-tauri | |
target-dir: ./src-tauri/target | |
- name: Build | |
run: | | |
npm ci | |
npm run tauri -- build --target universal-apple-darwin | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: | | |
./src-tauri/target/universal-apple-darwin/release/bundle/dmg/*.dmg |