-
Notifications
You must be signed in to change notification settings - Fork 44
42 lines (42 loc) · 1.4 KB
/
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
38
39
40
41
42
on: [push, pull_request]
name: Test Build
jobs:
build-on-linux:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.ref }}
- uses: actions/setup-node@v1
with:
node-version: '16.x'
- name: install wine
# https://github.com/actions/virtual-environments/issues/4589
run: |
sudo dpkg --add-architecture i386
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 86B72ED9
sudo add-apt-repository 'deb [arch=amd64] https://mirror.mxe.cc/repos/apt focal main'
sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list
sudo apt -qq update
sudo apt install -yqq --allow-downgrades libgd3/focal libpcre2-8-0/focal libpcre2-16-0/focal libpcre2-32-0/focal libpcre2-posix2/focal
sudo apt purge -yqq libmono* mono* php* libgdiplus libpcre2-posix3
sudo apt install -y wine32 wine64
- name: test
run: make i test
- name: build
run: make linux32 linux64 win32 win64
build-on-mac:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.ref }}
- uses: actions/setup-node@v1
with:
node-version: '16.x'
- name: test
run: make i test
- name: build
env:
NODE_OPTIONS: "--max_old_space_size=4096"
run: make mac