Skip to content

Commit

Permalink
workflows bugfix install latest TinyORM port
Browse files Browse the repository at this point in the history
Install the latest TinyORM port also for vcpkg classic mode.
  • Loading branch information
silverqx committed Oct 19, 2023
1 parent 808fb75 commit f1fb8b0
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 24 deletions.
29 changes: 16 additions & 13 deletions .github/workflows/vcpkg-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,22 @@ jobs:
run: |
sqlite3 --version
# Will be used in the classic method (vcpkg install tinyorm) and VcpkgManifest method
# I will not write bash scripts for this, would be a pain 🫤
- name: vcpkg prepare TinyORM ports (update REF and SHA512)
shell: pwsh -NoProfile -Command "& '{0}'"
working-directory: ${{ env.TinyORMPath }}
run: |
. ./tools/private/Common-Deploy.ps1
$portfileQt6Path = Resolve-Path -Path './cmake/vcpkg/ports/tinyorm/portfile.cmake'
$portfileQt5Path = Resolve-Path -Path './cmake/vcpkg/ports/tinyorm-qt5/portfile.cmake'
$vcpkgRef = '${{ github.ref_name }}'
Edit-VcpkgRefAndHash -Project 'silverqx/TinyORM' -Ref $vcpkgRef `
-PortFile $portfileQt6Path, $portfileQt5Path `
-EnableRetries
# 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.
Expand Down Expand Up @@ -202,19 +218,6 @@ jobs:
run: |
cp ./vcpkg.json.VcpkgManifest.${{ matrix.qt.name }}.example ./vcpkg.json
# I will not write bash scripts for this, would be a pain 🫤
- name: HelloWorld prepare VcpkgManifest method (update REF and SHA512)
shell: pwsh -NoProfile -Command "& '{0}'"
working-directory: ${{ env.TinyORMPath }}
run: |
. ./tools/private/Common-Deploy.ps1
$portfilePath = Resolve-Path -Path './cmake/vcpkg/ports/tinyorm/portfile.cmake'
$vcpkgRef = '${{ github.ref_name }}'
Edit-VcpkgRefAndHash -Project 'silverqx/TinyORM' -Ref $vcpkgRef -PortFile $portfilePath `
-EnableRetries
# CMAKE_DISABLE_PRECOMPILE_HEADERS=ON is correct (no need to use PCH for one TU)
# VCPKG_APPLOCAL_DEPS=OFF is correct as everything is linked statically on Linux
# Don't use ccache for the VcpkgManifest method as the vcpkg has its own binary caching
Expand Down
25 changes: 14 additions & 11 deletions .github/workflows/vcpkg-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,20 @@ jobs:
run: |
cmake.exe --version
# Will be used in the classic method (vcpkg install tinyorm) and VcpkgManifest method
- name: vcpkg prepare TinyORM ports (update REF and SHA512)
working-directory: ${{ env.TinyORMPath }}
run: |
. ./tools/private/Common-Deploy.ps1
$portfileQt6Path = Resolve-Path -Path './cmake/vcpkg/ports/tinyorm/portfile.cmake'
$portfileQt5Path = Resolve-Path -Path './cmake/vcpkg/ports/tinyorm-qt5/portfile.cmake'
$vcpkgRef = '${{ github.ref_name }}'
Edit-VcpkgRefAndHash -Project 'silverqx/TinyORM' -Ref $vcpkgRef `
-PortFile $portfileQt6Path, $portfileQt5Path `
-EnableRetries
# 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.
Expand Down Expand Up @@ -195,17 +209,6 @@ jobs:
Copy-Item -Path ./vcpkg.json.VcpkgManifest.${{ matrix.qt.name }}.example
-Destination ./vcpkg.json
- name: HelloWorld prepare VcpkgManifest method (update REF and SHA512)
working-directory: ${{ env.TinyORMPath }}
run: |
. ./tools/private/Common-Deploy.ps1
$portfilePath = Resolve-Path -Path './cmake/vcpkg/ports/tinyorm/portfile.cmake'
$vcpkgRef = '${{ github.ref_name }}'
Edit-VcpkgRefAndHash -Project 'silverqx/TinyORM' -Ref $vcpkgRef -PortFile $portfilePath `
-EnableRetries
# Don't use ccache for the VcpkgManifest method as the vcpkg has its own binary caching
- name: HelloWorld cmake configure (vcpkgmanifest-msvc-${{ matrix.build-type.key }})
working-directory: HelloWorld
Expand Down

0 comments on commit f1fb8b0

Please sign in to comment.