-
Notifications
You must be signed in to change notification settings - Fork 77
60 lines (52 loc) · 1.32 KB
/
dev-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
54
55
56
57
58
59
60
name: "Build/PullRequest"
on:
push:
branches:
- dev
paths-ignore:
- "**.md"
- "**.spec.js"
- ".idea"
- ".vscode"
- ".dockerignore"
- "Dockerfile"
- ".gitignore"
- ".github/**"
- "!.github/workflows/*.yml"
workflow_dispatch:
defaults:
run:
shell: "bash"
jobs:
build:
# see more environment https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idruns-on
runs-on: ${{ matrix.os }}
strategy:
matrix:
node: ["20"]
os: [windows-latest, ubuntu-latest, macos-latest]
arch: ["x64", "arm64"]
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_OPTIONS: "--max_old_space_size=6144"
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: pnpm/action-setup@v3
with:
version: 8
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: 'pnpm'
- name: Install dependencies
run: pnpm i
- name: Compile Electron app
run: pnpm make
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: maax-nightly-${{ matrix.os }}-${{ matrix.arch }}
path: ./out/maa-x*