diff --git a/.github/workflows/linux-qt6-drivers.yml b/.github/workflows/linux-qt6-drivers.yml index 786af292e..3871dd67a 100644 --- a/.github/workflows/linux-qt6-drivers.yml +++ b/.github/workflows/linux-qt6-drivers.yml @@ -120,6 +120,24 @@ jobs: echo 'VCPKG_DEFAULT_TRIPLET=x64-linux-dynamic' >> $GITHUB_ENV echo 'VCPKG_MAX_CONCURRENCY=${{ env.TinyParallel }}' >> $GITHUB_ENV + - name: vcpkg upgrade repository (latest version) + run: | + cd "$VCPKG_INSTALLATION_ROOT" + + git switch master + git fetch --tags origin + git reset --hard origin/master + + ./bootstrap-vcpkg.sh + + - name: CMake print version + run: | + cmake --version + + - name: vcpkg print version + run: | + vcpkg --version + - name: Qt v6.7.0 prepare environment run: | echo '/opt/Qt/6.7.0/bin' >> $GITHUB_PATH diff --git a/.github/workflows/msvc2022-qt6-drivers.yml b/.github/workflows/msvc2022-qt6-drivers.yml index a8d7fccb0..9d020c697 100644 --- a/.github/workflows/msvc2022-qt6-drivers.yml +++ b/.github/workflows/msvc2022-qt6-drivers.yml @@ -141,6 +141,12 @@ jobs: ccache.exe --show-config Write-Output '::endgroup::' + - name: Self-hosted runner prepare environment + run: | + 'C:\Program Files\CMake\bin' >> $env:GITHUB_PATH + "$env:VCPKG_INSTALLATION_ROOT" >> $env:GITHUB_PATH + "$env:TINY_QT_ROOT\6.7.0\msvc2019_64\bin" >> $env:GITHUB_PATH + # Must be after the ilammy/msvc-dev-cmd@v1 because vcvars64 overrides the VCPKG_ROOT - name: vcpkg prepare environment run: | @@ -148,11 +154,15 @@ jobs: 'VCPKG_DEFAULT_TRIPLET=x64-windows' >> $env:GITHUB_ENV 'VCPKG_MAX_CONCURRENCY=${{ env.TinyParallel }}' >> $env:GITHUB_ENV - - name: Self-hosted runner prepare environment + - name: vcpkg upgrade repository (latest version) run: | - 'C:\Program Files\CMake\bin' >> $env:GITHUB_PATH - "$env:VCPKG_INSTALLATION_ROOT" >> $env:GITHUB_PATH - "$env:TINY_QT_ROOT\6.7.0\msvc2019_64\bin" >> $env:GITHUB_PATH + Set-Location -Path $env:VCPKG_INSTALLATION_ROOT + + git.exe switch master + git.exe fetch --tags origin + git.exe reset --hard origin/master + + .\bootstrap-vcpkg.bat - name: CMake print version run: | diff --git a/.github/workflows/msys2-ucrt64-drivers.yml b/.github/workflows/msys2-ucrt64-drivers.yml index 51d0ba216..9c9bbcc59 100644 --- a/.github/workflows/msys2-ucrt64-drivers.yml +++ b/.github/workflows/msys2-ucrt64-drivers.yml @@ -145,6 +145,16 @@ jobs: echo 'VCPKG_DEFAULT_HOST_TRIPLET=x64-mingw-dynamic' >> $GITHUB_ENV echo 'VCPKG_MAX_CONCURRENCY=${{ env.TinyParallel }}' >> $GITHUB_ENV + - name: vcpkg upgrade repository (latest version) + run: | + Set-Location -Path $env:VCPKG_INSTALLATION_ROOT + + git.exe switch master + git.exe fetch --tags origin + git.exe reset --hard origin/master + + .\bootstrap-vcpkg.bat + - name: CMake print version shell: msys2 {0} run: | diff --git a/.github/workflows/vcpkg-linux-drivers.yml b/.github/workflows/vcpkg-linux-drivers.yml index 6f293d1ff..e73c87dad 100644 --- a/.github/workflows/vcpkg-linux-drivers.yml +++ b/.github/workflows/vcpkg-linux-drivers.yml @@ -93,6 +93,10 @@ jobs: # Binary caching echo 'VCPKG_BINARY_SOURCES=clear;x-gha,readwrite' >> $GITHUB_ENV + - name: vcpkg add on the $PATH + run: | + echo "$VCPKG_INSTALLATION_ROOT" >> $GITHUB_PATH + - name: vcpkg prepare binary caching uses: actions/github-script@v6 with: @@ -100,9 +104,15 @@ jobs: core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || ''); core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || ''); - - name: vcpkg add on the $PATH + - name: vcpkg upgrade repository (latest version) run: | - echo "$VCPKG_INSTALLATION_ROOT" >> $GITHUB_PATH + cd "$VCPKG_INSTALLATION_ROOT" + + git switch master + git fetch --tags origin + git reset --hard origin/master + + ./bootstrap-vcpkg.sh - name: CMake print version run: | @@ -130,17 +140,6 @@ jobs: # 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: matrix.build-type.key == 'debug' - run: | - cd "$VCPKG_INSTALLATION_ROOT" - - git switch master - git fetch --tags origin - git reset --hard origin/master - - ./bootstrap-vcpkg.sh - # 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. diff --git a/.github/workflows/vcpkg-linux.yml b/.github/workflows/vcpkg-linux.yml index ad7d65736..7ee0ddab1 100644 --- a/.github/workflows/vcpkg-linux.yml +++ b/.github/workflows/vcpkg-linux.yml @@ -135,6 +135,11 @@ jobs: # Binary caching echo 'VCPKG_BINARY_SOURCES=clear;x-gha,readwrite' >> $GITHUB_ENV + - name: vcpkg add on the $PATH + if: env.TinyIsSelfHostedRunner == 'true' + run: | + echo "$VCPKG_INSTALLATION_ROOT" >> $GITHUB_PATH + - name: vcpkg prepare binary caching uses: actions/github-script@v6 with: @@ -142,10 +147,16 @@ jobs: core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || ''); core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || ''); - - name: vcpkg add on the $PATH + - name: vcpkg upgrade repository (latest version) if: env.TinyIsSelfHostedRunner == 'true' run: | - echo "$VCPKG_INSTALLATION_ROOT" >> $GITHUB_PATH + cd "$VCPKG_INSTALLATION_ROOT" + + git switch master + git fetch --tags origin + git reset --hard origin/master + + ./bootstrap-vcpkg.sh - name: CMake print version run: | @@ -179,17 +190,6 @@ jobs: # 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 - - ./bootstrap-vcpkg.sh - # 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. diff --git a/.github/workflows/vcpkg-windows-drivers.yml b/.github/workflows/vcpkg-windows-drivers.yml index 6751926cc..72d3cc873 100644 --- a/.github/workflows/vcpkg-windows-drivers.yml +++ b/.github/workflows/vcpkg-windows-drivers.yml @@ -131,6 +131,11 @@ jobs: # Binary caching 'VCPKG_BINARY_SOURCES=clear;x-gha,readwrite' >> $env:GITHUB_ENV + - name: Self-hosted runner prepare environment + run: | + 'C:\Program Files\CMake\bin' >> $env:GITHUB_PATH + "$env:VCPKG_INSTALLATION_ROOT" >> $env:GITHUB_PATH + - name: vcpkg prepare binary caching uses: actions/github-script@v6 with: @@ -138,10 +143,15 @@ jobs: core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || ''); core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || ''); - - name: Self-hosted runner prepare environment + - name: vcpkg upgrade repository (latest version) run: | - 'C:\Program Files\CMake\bin' >> $env:GITHUB_PATH - "$env:VCPKG_INSTALLATION_ROOT" >> $env:GITHUB_PATH + Set-Location -Path $env:VCPKG_INSTALLATION_ROOT + + git.exe switch master + git.exe fetch --tags origin + git.exe reset --hard origin/master + + .\bootstrap-vcpkg.bat - name: CMake print version run: | @@ -167,17 +177,6 @@ jobs: # 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: 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 - - .\bootstrap-vcpkg.bat - # 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. diff --git a/.github/workflows/vcpkg-windows.yml b/.github/workflows/vcpkg-windows.yml index 011b90b7f..3d84dfd51 100644 --- a/.github/workflows/vcpkg-windows.yml +++ b/.github/workflows/vcpkg-windows.yml @@ -110,6 +110,12 @@ jobs: # Binary caching 'VCPKG_BINARY_SOURCES=clear;x-gha,readwrite' >> $env:GITHUB_ENV + - name: Self-hosted runner prepare environment + if: env.TinyIsSelfHostedRunner == 'true' + run: | + 'C:\Program Files\CMake\bin' >> $env:GITHUB_PATH + "$env:VCPKG_INSTALLATION_ROOT" >> $env:GITHUB_PATH + - name: vcpkg prepare binary caching uses: actions/github-script@v6 with: @@ -117,11 +123,16 @@ jobs: core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || ''); core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || ''); - - name: Self-hosted runner prepare environment + - name: vcpkg upgrade repository (latest version) if: env.TinyIsSelfHostedRunner == 'true' run: | - 'C:\Program Files\CMake\bin' >> $env:GITHUB_PATH - "$env:VCPKG_INSTALLATION_ROOT" >> $env:GITHUB_PATH + Set-Location -Path $env:VCPKG_INSTALLATION_ROOT + + git.exe switch master + git.exe fetch --tags origin + git.exe reset --hard origin/master + + .\bootstrap-vcpkg.bat - name: CMake print version run: | @@ -149,17 +160,6 @@ jobs: # 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 - - .\bootstrap-vcpkg.bat - # 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.