Skip to content

Commit

Permalink
Cache Qt
Browse files Browse the repository at this point in the history
  • Loading branch information
elsid committed Mar 6, 2024
1 parent ea612c4 commit b85e677
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,20 @@ jobs:

- run: dir 'C:/vcpkg/installed/x64-windows-static/include'

- run: mkdir -p ${{ github.workspace }}/Qt
- name: Cache Qt
id: qt-cache
uses: actions/cache@v4
with:
path: ${{ github.workspace }}/Qt/6.7.0/msvc2019_64
key: qt-cache-6.7.0-msvc2019_64-v1

- working-directory: ${{ github.workspace }}/Qt
run: curl --fail --retry 3 -L -o aqt_x64.exe https://github.com/miurahr/aqtinstall/releases/download/v3.1.12/aqt_x64.exe
if: steps.qt-cache.outputs.cache-hit != 'true'

- working-directory: ${{ github.workspace }}/Qt
run: .\aqt_x64.exe install-qt windows desktop 6.7.0 win64_msvc2019_64
if: steps.qt-cache.outputs.cache-hit != 'true'

- run: dir ${{ github.workspace }}

Expand Down Expand Up @@ -207,13 +214,20 @@ jobs:

- run: dir 'C:/vcpkg/installed/x64-windows/include'

- run: mkdir -p ${{ github.workspace }}/Qt
- name: Cache Qt
id: qt-cache
uses: actions/cache@v4
with:
path: ${{ github.workspace }}/Qt/6.7.0/msvc2019_64
key: qt-cache-6.7.0-msvc2019_64-v1

- working-directory: ${{ github.workspace }}/Qt
run: curl --fail --retry 3 -L -o aqt_x64.exe https://github.com/miurahr/aqtinstall/releases/download/v3.1.12/aqt_x64.exe
if: steps.qt-cache.outputs.cache-hit != 'true'

- working-directory: ${{ github.workspace }}/Qt
run: .\aqt_x64.exe install-qt windows desktop 6.7.0 win64_msvc2019_64
if: steps.qt-cache.outputs.cache-hit != 'true'

- run: dir ${{ github.workspace }}

Expand Down

0 comments on commit b85e677

Please sign in to comment.