v1.10.0 #74
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: Tests | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: | |
- '*' | |
jobs: | |
test-tauri: | |
strategy: | |
fail-fast: false | |
matrix: | |
settings: | |
- platform: 'macos-latest' | |
args: '--target x86_64-apple-darwin' # Intel-based | |
- platform: 'macos-latest' | |
args: '--target aarch64-apple-darwin' # Apple Silicon | |
- platform: 'ubuntu-20.04' | |
args: '' | |
- platform: 'windows-latest' | |
args: '--target x86_64-pc-windows-msvc' # 64-bit | |
- platform: 'windows-latest' | |
args: '--target i686-pc-windows-msvc' # 32-bit | |
runs-on: ${{ matrix.settings.platform }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: install Rust stable | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
targets: aarch64-apple-darwin | |
- name: Rust cache | |
uses: swatinem/rust-cache@v2 | |
with: | |
workspaces: './src-tauri -> target' | |
- name: Sync node version and setup cache | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
cache: 'yarn' | |
- name: install dependencies (ubuntu only) | |
if: matrix.settings.platform == 'ubuntu-20.04' | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf | |
- name: install frontend dependencies | |
run: yarn install # change this to npm or pnpm depending on which one you use | |
- uses: tauri-apps/tauri-action@dev | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
args: ${{ matrix.settings.args }} |