Skip to content

Commit 5a84edd

Browse files
authored
Added installing wine and mono for Windows build, caches
Maybe use native Windows\OSX worker later
1 parent 9191fa8 commit 5a84edd

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/build.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,29 @@ jobs:
2020
AhMyth-Server
2121
runs-on: ubuntu-latest
2222
steps:
23+
- name: Cache node_modules
24+
uses: actions/cache@v2
25+
with:
26+
path: ~/.npm
27+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
28+
restore-keys: |
29+
${{ runner.os }}-node-
30+
- name: Cache Electron
31+
uses: actions/cache@v1
32+
with:
33+
path: ${{ github.workspace }}/.cache/electron
34+
key: ${{ runner.os }}-electron-cache-${{ hashFiles(format('{0}{1}', github.workspace, '/package-lock.json')) }}
35+
restore-keys: |
36+
${{ runner.os }}-electron-cache-
37+
38+
- name: Cache Electron-Builder
39+
uses: actions/cache@v1
40+
with:
41+
path: ${{ github.workspace }}/.cache/electron-builder
42+
key: ${{ runner.os }}-electron-builder-cache-${{ hashFiles(format('{0}{1}', github.workspace, '/package-lock.json'')) }}
43+
restore-keys: |
44+
${{ runner.os }}-electron-builder-cache-
45+
2346
- name: Install apt dependencies (need for Windows build)
2447
run: |
2548
apt update && sudo apt-get install --no-install-recommends -y wine mono gcc-multilib g++-multilib

0 commit comments

Comments
 (0)