-
-
Notifications
You must be signed in to change notification settings - Fork 110
106 lines (89 loc) · 2.45 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
name: Build Test App
on:
push:
branches: [ main, develop ]
paths-ignore:
- 'README.md'
- 'CHANGE.md'
- 'doc/*'
- '.github/*'
jobs:
build-windows:
runs-on: windows-2019
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: '14.x'
- name: Npm Install
run: |
git config --global url."https://github.com".insteadOf ssh://[email protected]
npm ci
- name: Build Dist
env:
GA_ID: ${{ secrets.GA_ID }}
NODE_ENV: production
NODE_OPTIONS: --max_old_space_size=4096
run: npm run dist
- name: Archive production artifacts
uses: actions/upload-artifact@v2
with:
name: OpenBlock-Desktop-win32
path: dist/OpenBlock-Desktop*.exe
retention-days: 1
build-mac:
runs-on: macos-13
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: '16.x'
- name: Install python2.7
run: |
brew install pyenv
pyenv install 2.7.18
pyenv global 2.7.18
- name: Npm Install
run: |
pip install setuptools
npm ci
- name: Build Dist
env:
GA_ID: ${{ secrets.GA_ID }}
NODE_ENV: production
NODE_OPTIONS: --max_old_space_size=8192
CSC_IDENTITY_AUTO_DISCOVERY: false
run: |
export PYTHON_PATH=$(pyenv root)/shims/python
npm run dist
- name: Archive production artifacts
uses: actions/upload-artifact@v2
with:
name: OpenBlock-Desktop-darwin
path: dist/OpenBlock-Desktop*.dmg
retention-days: 1
build-linux:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: '16.x'
- name: Npm Install
run: npm ci
- name: Build Dist
env:
GA_ID: ${{ secrets.GA_ID }}
NODE_ENV: production
NODE_OPTIONS: --max_old_space_size=8192
CSC_IDENTITY_AUTO_DISCOVERY: false
run: npm run dist
- name: Archive production artifacts
uses: actions/upload-artifact@v2
with:
name: OpenBlock-Desktop-linux
path: dist/OpenBlock-Desktop*.deb
retention-days: 1