-
-
Notifications
You must be signed in to change notification settings - Fork 26
50 lines (45 loc) · 1.32 KB
/
electron-build.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
name: Build Electron app
on:
push:
branches:
- master
paths-ignore:
- packages/web/**
jobs:
build_on_win:
runs-on: windows-latest
concurrency:
group: build-electron-dev-${{ github.ref }}
cancel-in-progress: true
steps:
- uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 20
cache: "yarn"
- name: Cache node modules
uses: actions/cache@v4
env:
cache-name: cache-desktop-app-modules-v1
with:
path: |
node_modules
*/*/node_modules
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
# On windows GitHub actions the yarn install is timing out
- name: Setup huge Yarn timeout
run: |
yarn config set network-timeout 600000 -g
- name: Install dependencies
run: yarn --prefer-offline --frozen-lockfile install
- name: Build
run: yarn app make
- name: Upload the build
uses: actions/upload-artifact@v4
with:
name: coh2-game-stats-dev-${{github.sha}}
path: |
packages/app/out/make/squirrel.windows/x64/*.exe