Skip to content

Commit

Permalink
use jurplel/install-qt-action internal cache
Browse files Browse the repository at this point in the history
  • Loading branch information
EtlamGit committed Oct 15, 2022
1 parent 0afefac commit 826bf98
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 14 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/cpp-qt-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,21 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Cache Qt
id: cache-qt
uses: actions/cache@v3
with:
path: ${{ runner.workspace }}/Qt
key: ${{ runner.os }}-QtCache-${{ matrix.qt }}
# - name: Cache Qt
# id: cache-qt
# uses: actions/cache@v3
# with:
# path: ${{ runner.workspace }}/Qt
# key: ${{ runner.os }}-QtCache-${{ matrix.qt }}

- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: ${{ matrix.qt }}
target: 'desktop'
cached: ${{ steps.cache-qt.outputs.cache-hit }}
# manually-cached: ${{ steps.cache-qt.outputs.cache-hit }}
cache: 'true'
cache-key-prefix: ${{ runner.os }}-QtCache-${{ matrix.qt }}

- name: Create BUILD folder
run: |
Expand Down
16 changes: 9 additions & 7 deletions .github/workflows/cpp-qt-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,20 +30,22 @@ jobs:
with:
toolset: ${{ matrix.msvc_toolset }}

- name: Cache Qt
id: cache-qt
uses: actions/cache@v3
with:
path: ${{ runner.workspace }}/Qt
key: ${{ runner.os }}-QtCache-${{ matrix.qt }}
# - name: Cache Qt
# id: cache-qt
# uses: actions/cache@v3
# with:
# path: ${{ runner.workspace }}/Qt
# key: ${{ runner.os }}-QtCache-${{ matrix.qt }}

- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: ${{ matrix.qt }}
target: 'desktop'
# tools: 'tools_openssl_x64,1.1.1-10,qt.tools.openssl.win_x64'
cached: ${{ steps.cache-qt.outputs.cache-hit }}
# manually-cached: ${{ steps.cache-qt.outputs.cache-hit }}
cache: 'true'
cache-key-prefix: ${{ runner.os }}-QtCache-${{ matrix.qt }}

- name: Create BUILD folder
run: |
Expand Down

0 comments on commit 826bf98

Please sign in to comment.