Merge pull request #914 from DioEgizio/cacheqt
This commit is contained in:
commit
04818ca626
11
.github/workflows/build.yml
vendored
11
.github/workflows/build.yml
vendored
@ -28,6 +28,7 @@ jobs:
|
|||||||
qt_host: linux
|
qt_host: linux
|
||||||
qt_version: '6.3.1'
|
qt_version: '6.3.1'
|
||||||
qt_modules: 'qt5compat qtimageformats'
|
qt_modules: 'qt5compat qtimageformats'
|
||||||
|
qt_path: /home/runner/work/PolyMC/Qt
|
||||||
|
|
||||||
- os: windows-2022
|
- os: windows-2022
|
||||||
name: "Windows-Legacy"
|
name: "Windows-Legacy"
|
||||||
@ -45,6 +46,7 @@ jobs:
|
|||||||
qt_host: mac
|
qt_host: mac
|
||||||
qt_version: '6.3.1'
|
qt_version: '6.3.1'
|
||||||
qt_modules: 'qt5compat qtimageformats'
|
qt_modules: 'qt5compat qtimageformats'
|
||||||
|
qt_path: /Users/runner/work/PolyMC/Qt
|
||||||
|
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
@ -140,6 +142,14 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
sudo apt-get -y install qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools libqt5core5a libqt5network5 libqt5gui5
|
sudo apt-get -y install qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools libqt5core5a libqt5network5 libqt5gui5
|
||||||
|
|
||||||
|
- name: Cache Qt (macOS and AppImage)
|
||||||
|
id: cache-qt
|
||||||
|
if: matrix.qt_ver == 6 && runner.os != 'Windows'
|
||||||
|
uses: actions/cache@v3
|
||||||
|
with:
|
||||||
|
path: '${{ matrix.qt_path }}/${{ matrix.qt_version }}'
|
||||||
|
key: ${{ matrix.qt_host }}-${{ matrix.qt_version }}-"${{ matrix.qt_modules }}"-qt_cache
|
||||||
|
|
||||||
- name: Install Qt (macOS and AppImage)
|
- name: Install Qt (macOS and AppImage)
|
||||||
if: matrix.qt_ver == 6 && runner.os != 'Windows'
|
if: matrix.qt_ver == 6 && runner.os != 'Windows'
|
||||||
uses: jurplel/install-qt-action@v2
|
uses: jurplel/install-qt-action@v2
|
||||||
@ -148,6 +158,7 @@ jobs:
|
|||||||
host: ${{ matrix.qt_host }}
|
host: ${{ matrix.qt_host }}
|
||||||
target: 'desktop'
|
target: 'desktop'
|
||||||
modules: ${{ matrix.qt_modules }}
|
modules: ${{ matrix.qt_modules }}
|
||||||
|
cached: ${{ steps.cache-qt.outputs.cache-hit }}
|
||||||
aqtversion: ==2.1.*
|
aqtversion: ==2.1.*
|
||||||
|
|
||||||
- name: Prepare AppImage (Linux)
|
- name: Prepare AppImage (Linux)
|
||||||
|
Loading…
Reference in New Issue
Block a user