-
-
Notifications
You must be signed in to change notification settings - Fork 5
37 lines (34 loc) · 846 Bytes
/
ci.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
name: CI
on:
push:
branches:
- '*'
tags-ignore:
- '*'
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ${{ matrix.os }}
name: ${{ matrix.arg }}
strategy:
matrix:
include:
- { os: macos-latest, arg: --mac }
- { os: ubuntu-latest, arg: --linux }
- { os: windows-latest, arg: --windows }
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Rust setup
uses: dtolnay/rust-toolchain@stable
- name: Node.js setup
uses: actions/setup-node@v2
with:
node-version: 20
- run: npm install
- run: npm run napi
- run: npm run build:web
- run: npm run electron-builder -- ${{ matrix.arg }} --publish never
- run: npm run generate-update-json