Skip to content

Build Tauri App

Build Tauri App #82

name: Build Tauri App
on:
release:
types: [published]
workflow_dispatch:
jobs:
release:
strategy:
fail-fast: false
matrix:
platform: [macos-latest, ubuntu-22.04, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
- name: Install Node 🧰
uses: actions/setup-node@v4
with:
node-version: 16
- name: Install Rust 🦀
uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin'

Check failure on line 27 in .github/workflows/build-tauri-app.yml

View workflow run for this annotation

GitHub Actions / Build Tauri App

Invalid workflow file

The workflow is not valid. .github/workflows/build-tauri-app.yml (Line: 27, Col: 28): The expression is not closed. An unescaped ${{ sequence was found, but the closing }} sequence was not found.
- name: Install dependencies (ubuntu only) 📦
if: matrix.platform == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -y libwebkit2gtk-4.0-dev 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: bridge-core/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