update workflow, speed up ci

This commit is contained in:
JessGuo
2023-04-02 23:36:23 +08:00
parent 5279a2c7b2
commit 81e78834d0
3 changed files with 24 additions and 11 deletions

View File

@ -30,6 +30,12 @@ jobs:
fileName: example
# 步骤
steps:
- name: '⚙️ Cache Qt'
id: cache-qt
uses: actions/cache@v3
with:
path: ${{ runner.workspace }}\Qt
key: ${{runner.os}}-qtcachedir-${{ matrix.qt_ver }}
# 安装Qt
- name: Install Qt
# 使用外部action。这个action专门用来安装Qt
@ -37,7 +43,7 @@ jobs:
with:
version: ${{ matrix.qt_ver }}
arch: ${{ matrix.qt_arch }}
cached: 'false'
cache: ${{steps.cache-qt.outputs.cache-hit}}
modules: 'qt5compat qtmultimedia qtshadertools qtimageformats'
# 拉取代码
- uses: actions/checkout@v2