Build Tauri App #65
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 Tauri App | |
on: | |
release: | |
types: [published] | |
workflow_dispatch: | |
jobs: | |
release: | |
strategy: | |
fail-fast: false | |
matrix: | |
platform: [macos-latest, ubuntu-latest, windows-latest] | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@v3 | |
- name: Install Node 🧰 | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 16 | |
cache: 'npm' | |
- name: Install Rust 🦀 | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
- name: Install dependencies (ubuntu only) 📦 | |
if: matrix.platform == 'ubuntu-latest' | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libappindicator3-dev librsvg2-dev patchelf | |
- name: Install npm packages 🔧 | |
run: npm i | |
# - name: Add aarch64 target | |
# if: matrix.platform == 'macos-latest' | |
# run: rustup target add aarch64-apple-darwin | |
# - name: Build the app (Apple Silicon) | |
# uses: solvedDev/tauri-action@dev | |
# if: matrix.platform == 'macos-latest' | |
# env: | |
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
# TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }} | |
# TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }} | |
# with: | |
# tagName: v__VERSION__ # tauri-action replaces \_\_VERSION\_\_ with the app version | |
# releaseName: 'v__VERSION__' | |
# releaseDraft: true | |
# prerelease: false | |
# args: --target aarch64-apple-darwin | |
- name: Build the app 💻 | |
uses: solvedDev/tauri-action@dev | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }} | |
TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }} | |
VITE_IS_TAURI_APP: true | |
with: | |
tagName: v__VERSION__ # tauri-action replaces \_\_VERSION\_\_ with the app version | |
releaseName: 'v__VERSION__' | |
releaseDraft: false | |
prerelease: false |