Skip to content

Commit 1bf809f

Browse files
committed
ci: use jurplel/install-qt-action@v4 and fix caching
1 parent acaf605 commit 1bf809f

File tree

1 file changed

+10
-16
lines changed

1 file changed

+10
-16
lines changed

.github/workflows/build.yml

+10-16
Original file line numberDiff line numberDiff line change
@@ -52,50 +52,44 @@ jobs:
5252
# Install Qt
5353
#
5454

55-
- name: Cache Qt
56-
id: cache-qt
57-
uses: actions/cache@v3
58-
with:
59-
path: ../Qt
60-
key: ${{ runner.os }}-QtCache-${{ matrix.qt-version }}
6155
# https://github.com/marketplace/actions/install-qt
6256
- if: contains( matrix.os, 'windows') && ( matrix.qt-version == '5.7' )
6357
name: Install Qt 5.7 on Windows
64-
uses: jurplel/install-qt-action@v2
58+
uses: jurplel/install-qt-action@v4
6559
with:
6660
version: ${{ matrix.qt-version }}
6761
arch: win32_mingw53
6862
# try mirror
6963
# mirror: 'http://mirrors.ocf.berkeley.edu/qt/'
70-
cached: ${{ steps.cache-qt.outputs.cache-hit }}
64+
cache: true
7165
aqtversion: '==0.9.4'
7266
# py7zrversion: '==0.9.0'
7367
- if: contains( matrix.os, 'windows') && ( matrix.qt-version == '5.15.2' )
7468
name: Install Qt 5.15.2 on Windows
75-
uses: jurplel/install-qt-action@v2
69+
uses: jurplel/install-qt-action@v4
7670
with:
7771
version: ${{ matrix.qt-version }}
7872
arch: win64_mingw81
79-
cached: ${{ steps.cache-qt.outputs.cache-hit }}
73+
cache: true
8074
- if: contains( matrix.os, 'windows') && ( matrix.qt-version != '5.7' ) && ( matrix.qt-version != '5.15.2' )
8175
name: Install Qt on Windows
82-
uses: jurplel/install-qt-action@v2
76+
uses: jurplel/install-qt-action@v4
8377
with:
8478
version: ${{ matrix.qt-version }}
8579
arch: win64_mingw73
86-
cached: ${{ steps.cache-qt.outputs.cache-hit }}
80+
cache: true
8781
- if: false == contains( matrix.os, 'windows') && !startsWith( matrix.qt-version, '6.' )
8882
name: Install Qt
89-
uses: jurplel/install-qt-action@v2
83+
uses: jurplel/install-qt-action@v4
9084
with:
9185
version: ${{ matrix.qt-version }}
92-
cached: ${{ steps.cache-qt.outputs.cache-hit }}
86+
cache: true
9387
- if: false == contains( matrix.os, 'windows') && startsWith( matrix.qt-version, '6.' )
9488
name: Install Qt
95-
uses: jurplel/install-qt-action@v2
89+
uses: jurplel/install-qt-action@v4
9690
with:
9791
version: ${{ matrix.qt-version }}
98-
cached: ${{ steps.cache-qt.outputs.cache-hit }}
92+
cache: true
9993

10094
#
10195
# Build qmarkdowntextedit

0 commit comments

Comments
 (0)