Skip to content

Commit 3a58893

Browse files
Try caching electron?
1 parent d210f11 commit 3a58893

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/build.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,19 @@ jobs:
6363
if: runner.os == 'Linux'
6464
run: echo "/snap/bin" >> $GITHUB_PATH
6565

66+
- name: Cache Electron binaries
67+
id: electron-cache
68+
uses: actions/cache@v3
69+
with:
70+
path: |
71+
~/.cache/electron
72+
~/.cache/electron-builder
73+
~/AppData/Local/electron
74+
~/AppData/Local/electron-builder
75+
key: ${{ runner.os }}-electron-${{ hashFiles('package.json') }}
76+
restore-keys: |
77+
${{ runner.os }}-electron-
78+
6679
- name: Run build script on Linux and MacOS
6780
if: runner.os == 'Linux' || runner.os == 'macOS'
6881
run: yarn dist

0 commit comments

Comments
 (0)