Skip to content

Commit

Permalink
workflows bugfix missing vcpkg remove
Browse files Browse the repository at this point in the history
 - also upgrade vcpkg to latest version
  • Loading branch information
silverqx committed Oct 19, 2023
1 parent 0a61df0 commit 808fb75
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 6 deletions.
24 changes: 21 additions & 3 deletions .github/workflows/vcpkg-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,27 @@ jobs:
run: |
sqlite3 --version
# The following two steps are not needed below they only test if the vcpkg classic mode works
# correctly. The Release and Debug build types are build at once so invoke these two steps
# for the debug matrix only.
# The following two steps (vcpkg install) are not needed below they only test if the vcpkg
# classic mode works correctly. The Release and Debug build types are build at once so invoke
# these two steps for the debug matrix only.

- name: vcpkg upgrade repository (latest version)
if: env.TinyIsSelfHostedRunner == 'true' && matrix.build-type.key == 'debug'
run: |
cd "$VCPKG_INSTALLATION_ROOT"
git switch master
git fetch --tags origin
git reset --hard origin/master
# This should reliably remove the qtbase and tinyorm with all dependencies.
# It's much faster to do it this way like removing the whole vcpkg folder and then the binary
# caching should kick in.
- name: vcpkg remove ${{ matrix.qt.vcpkg-qt }} and ${{ matrix.qt.vcpkg-tinyorm }} (classic mode)
if: matrix.build-type.key == 'debug'
run: >-
vcpkg remove --recurse vcpkg-cmake vcpkg-cmake-config zlib ${{ matrix.qt.vcpkg-qt }}
${{ matrix.qt.vcpkg-tinyorm }}
- name: vcpkg install ${{ matrix.qt.vcpkg-qt }} (classic mode)
if: matrix.build-type.key == 'debug'
Expand Down
24 changes: 21 additions & 3 deletions .github/workflows/vcpkg-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,27 @@ jobs:
run: |
cmake.exe --version
# The following two steps are not needed below they only test if the vcpkg classic mode works
# correctly. The Release and Debug build types are build at once so invoke these two steps
# for the debug matrix only.
# The following two steps (vcpkg install) are not needed below they only test if the vcpkg
# classic mode works correctly. The Release and Debug build types are build at once so invoke
# these two steps for the debug matrix only.

- name: vcpkg upgrade repository (latest version)
if: env.TinyIsSelfHostedRunner == 'true' && matrix.build-type.key == 'debug'
run: |
Set-Location -Path $env:VCPKG_INSTALLATION_ROOT
git.exe switch master
git.exe fetch --tags origin
git.exe reset --hard origin/master
# This should reliably remove the qtbase and tinyorm with all dependencies.
# It's much faster to do it this way like removing the whole vcpkg folder and then the binary
# caching should kick in.
- name: vcpkg remove ${{ matrix.qt.vcpkg-qt }} and ${{ matrix.qt.vcpkg-tinyorm }} (classic mode)
if: matrix.build-type.key == 'debug'
run: >-
vcpkg.exe remove --recurse vcpkg-cmake vcpkg-cmake-config zlib ${{ matrix.qt.vcpkg-qt }}
${{ matrix.qt.vcpkg-tinyorm }}
- name: vcpkg install ${{ matrix.qt.vcpkg-qt }} (classic mode)
if: matrix.build-type.key == 'debug'
Expand Down

0 comments on commit 808fb75

Please sign in to comment.