Skip to content

Commit 5ef3a41

Browse files
authored
cache Qt installation in Windows CI jobs (#3769)
* CI-windows.yml: cache Qt installation * release-windows.yml: store Qt version in env * release-windows.yml: cache Qt installation
1 parent a03d754 commit 5ef3a41

2 files changed

Lines changed: 20 additions & 2 deletions

File tree

.github/workflows/CI-windows.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,22 @@ jobs:
9191
7z x z3-%Z3_VERSION%-${{ matrix.arch }}-win.zip -oexternals -r -y || exit /b !errorlevel!
9292
move externals\z3-%Z3_VERSION%-${{ matrix.arch }}-win externals\z3 || exit /b !errorlevel!
9393
94+
- name: Cache Qt ${{ matrix.qt_ver }}
95+
if: matrix.qt_ver != '' && matrix.arch == 'x64'
96+
id: cache-qt
97+
uses: actions/cache@v1 # not v2!
98+
with:
99+
path: ../Qt
100+
key: Windows-QtCache-${{ matrix.qt_ver }}-qtcharts
101+
94102
# no 32-bit Qt available
95103
- name: Install Qt ${{ matrix.qt_ver }}
96104
if: matrix.qt_ver != '' && matrix.arch == 'x64'
97105
uses: jurplel/install-qt-action@v2
98106
with:
99107
version: ${{ matrix.qt_ver }}
100108
modules: 'qtcharts'
109+
cached: ${{ steps.cache-qt.outputs.cache-hit }}
101110

102111
- name: Install missing Python packages
103112
if: matrix.qt_ver == ''

.github/workflows/release-windows.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ jobs:
2727
PCRE_VERSION: 8.45
2828
# see https://github.com/Z3Prover/z3/releases:
2929
Z3_VERSION: 4.8.10
30+
QT_VERSION: 5.15.2
3031

3132
steps:
3233
- uses: actions/checkout@v2
@@ -76,11 +77,19 @@ jobs:
7677
7z x z3-%Z3_VERSION%-x64-win.zip -oexternals -r -y
7778
move externals\z3-%Z3_VERSION%-x64-win externals\z3
7879
79-
- name: Install Qt
80+
- name: Cache Qt ${{ env.QT_VERSION }}
81+
id: cache-qt
82+
uses: actions/cache@v1 # not v2!
83+
with:
84+
path: ../Qt
85+
key: Windows-QtCache-${{ env.QT_VERSION }}-qtcharts-qthelp
86+
87+
- name: Install Qt ${{ env.QT_VERSION }}
8088
uses: jurplel/install-qt-action@v2
8189
with:
82-
version: '5.15.2'
90+
version: ${{ env.QT_VERSION }}
8391
modules: 'qtcharts qthelp'
92+
cached: ${{ steps.cache-qt.outputs.cache-hit }}
8493

8594
- name: Create .qm
8695
run: |

0 commit comments

Comments
 (0)