-
Notifications
You must be signed in to change notification settings - Fork 15
53 lines (43 loc) · 1.02 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- name: Windows
platform: windows-latest
name: ${{ matrix.name }}
runs-on: ${{ matrix.platform }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Rust environment
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
- name: Setup Rust cache
uses: swatinem/rust-cache@v2
with:
workspaces: '. -> target'
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8
run_install: false
- name: Install Node and setup cache
uses: actions/setup-node@v3
with:
node-version: 18
cache: pnpm
- name: Install app dependencies
run: pnpm install
- name: Build Tauri app
run: pnpm tauri build