-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (50 loc) · 1.59 KB
/
build_app.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
name: Build Electron App
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- macos-10.15
- windows-latest
steps:
- uses: actions/checkout@v2
- name: Setup node
uses: actions/setup-node@v2
with:
node-version: "14.x"
- name: MacOS Fix Network Flakiness
shell: bash
run: |
if [ "$RUNNER_OS" == "macOS" ]; then
sudo sysctl -w net.link.generic.system.hwcksum_tx=0
sudo sysctl -w net.link.generic.system.hwcksum_rx=0
fi
- name: Install Dependencies
shell: bash
run: |
if [ "$RUNNER_OS" == "Linux" ]; then
echo "Installing Linux Dependencies"
sudo apt-get install dpkg
sudo apt-get install fakeroot
sudo apt-get install rpm
sudo apt-get install snapd
sudo apt-get install snapcraft
elif [ "$RUNNER_OS" == "Windows" ]; then
echo "Installing Windows Dependencies"
powershell Install-WindowsFeature Net-Framework-Core
choco install -y wixtoolset
echo "C:\Program Files (x86)\WiX Toolset v3.11\bin" >> $GITHUB_PATH
fi
- name: Install Yarn Dependencies
shell: bash
run: yarn install --frozen-lockfile --network-timeout 100000
- name: Build App
shell: bash
run: |
yarn make
yarn make --arch arm64
env:
CURRENT_WORKFLOW: "Build"