Skip to content

Commit f1a7a70

Browse files
authored
Merge pull request hrydgard#14135 from unknownbrackets/actions
Build: Cache Qt during Actions run
2 parents 91f84ce + da62dde commit f1a7a70

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/build.yml

+12
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
push:
55
branches:
66
- master
7+
# For testing.
8+
- actions
79
paths-ignore:
810
- '*.{txt,md}'
911
- 'Tools/**'
@@ -176,9 +178,19 @@ jobs:
176178
with:
177179
submodules: recursive
178180

181+
- name: Cache Qt
182+
uses: actions/cache@v1
183+
if: matrix.extra == 'qt'
184+
id: cache-qt
185+
with:
186+
path: ${{ runner.workspace }}/Qt
187+
key: ${{ runner.os }}-QtCache
188+
179189
- name: Install Qt
180190
uses: jurplel/install-qt-action@v2
181191
if: matrix.extra == 'qt'
192+
with:
193+
cached: ${{ steps.cache-qt.outputs.cache-hit }}
182194

183195
- uses: nttld/setup-ndk@v1
184196
if: matrix.extra == 'android'

0 commit comments

Comments
 (0)