Skip to content

Commit

Permalink
Update and rename tauri.yml to main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
LimesKey authored Jun 24, 2024
1 parent 8a9ddad commit c0dd232
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 86 deletions.
62 changes: 62 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: Tauri

on:
push:
pull_request:

jobs:

test-tauri:
strategy:
fail-fast: false
matrix:
platform: [macos-latest, ubuntu-20.04, windows-latest]

runs-on: ${{ matrix.platform }}
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup pnpm
uses: pnpm/[email protected]
with:
version: 9.1.4
run_install: true

- name: install Rust stable
uses: dtolnay/rust-toolchain@stable
with:
# Those targets are only used on macos runners so it's in an `if` to slightly speed up windows and linux builds.
targets: ${{ matrix.settings.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}

- name: install dependencies (ubuntu only)
if: matrix.platform == 'ubuntu-20.04'
run: |
sudo apt update
sudo apt install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf
- name: Rust cache
uses: swatinem/rust-cache@v2
with:
workspaces: './src-tauri -> target'

- name: setup node
uses: actions/[email protected]
with:
node-version: 18.12

- name: Install Build Dependencies
run: |
sudo apt update
sudo apt install libwebkit2gtk-4.0-dev \
build-essential \
curl \
wget \
file \
libssl-dev \
libgtk-3-dev \
libayatana-appindicator3-dev \
librsvg2-dev
- name: Tauri Build
run: pnpm tauri build
86 changes: 0 additions & 86 deletions .github/workflows/tauri.yml

This file was deleted.

0 comments on commit c0dd232

Please sign in to comment.