-
-
Notifications
You must be signed in to change notification settings - Fork 2
60 lines (58 loc) · 1.47 KB
/
ci.yaml
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
54
55
56
57
58
59
60
name: ci
on:
push:
branches:
- master
tags:
- v*.*.*
pull_request:
branches:
- master
jobs:
build:
strategy:
matrix:
os: [macos, windows, ubuntu]
fail-fast: false
runs-on: "${{ matrix.os }}-latest"
steps:
- uses: actions/checkout@v4
- uses: volta-cli/action@v4
# https://github.com/actions/runner/issues/2958
- if: matrix.os == 'macos'
uses: actions/setup-python@v5
with:
python-version: "3.x"
- if: matrix.os == 'macos'
run: pip install setuptools
- run: npm ci
- run: npm run lint
- run: npm run format:check
- run: npm run package
release:
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
needs: build
strategy:
matrix:
os: [macos, windows]
fail-fast: false
runs-on: "${{ matrix.os }}-latest"
steps:
- uses: actions/checkout@v4
- uses: volta-cli/action@v4
# https://github.com/actions/runner/issues/2958
- if: matrix.os == 'macos'
uses: actions/setup-python@v5
with:
python-version: 3.x
- if: matrix.os == 'macos'
run: pip install setuptools
- run: npm ci
- run: npm version --no-git-tag-version "${{ github.ref_name }}"
- run: npm run make
- uses: softprops/action-gh-release@v2
with:
draft: true
files: |
out/make/**/*.exe
out/make/**/*.dmg