From 71aa125fe0e0c24c1bcde0c1617ef8a0a8cd9949 Mon Sep 17 00:00:00 2001 From: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> Date: Thu, 18 Jan 2024 13:05:28 +0000 Subject: [PATCH] fixup! ci: Test CMake edge cases --- .github/workflows/cmake.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index 1683e46d1e3fc..e944457605f33 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -259,17 +259,17 @@ jobs: packages: 'clang-14 g++-multilib' c_compiler: 'clang-14 -m32' cxx_compiler: 'clang++-14 -m32' - depends_options: 'NO_QT=1' + depends_options: '' configure_options: '-DWERROR=ON' - name: 'MinGW-w64' triplet: 'x86_64-w64-mingw32' packages: 'g++-mingw-w64-x86-64-posix' - depends_options: 'NO_QT=1' + depends_options: '' exe_extension: '.exe' - name: 'MinGW-w64, debug' triplet: 'x86_64-w64-mingw32' packages: 'g++-mingw-w64-x86-64-posix' - depends_options: 'NO_QT=1 DEBUG=1' + depends_options: 'DEBUG=1' configure_options: '-DCMAKE_BUILD_TYPE=Debug' cache_suffix: '-debug' exe_extension: '.exe' @@ -392,6 +392,9 @@ jobs: # to avoid linker errors when using vcpkg in the manifest mode. # See: https://github.com/bitcoin/bitcoin/pull/28934 Add-Content -Path "$env:VCPKG_ROOT\triplets\x64-windows-static.cmake" -Value "set(VCPKG_PLATFORM_TOOLSET_VERSION $env:VCToolsVersion)" + # Skip debug configuration to speed up build and minimize cache size. + Add-Content -Path "$env:VCPKG_ROOT\triplets\x64-windows.cmake" -Value "set(VCPKG_BUILD_TYPE release)" + Add-Content -Path "$env:VCPKG_ROOT\triplets\x64-windows-static.cmake" -Value "set(VCPKG_BUILD_TYPE release)" - name: Restore vcpkg binary cache uses: actions/cache/restore@v3 @@ -453,7 +456,7 @@ jobs: env: HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK: 1 run: | - brew install ccache cmake pkg-config boost libevent berkeley-db@4 libnatpmp miniupnpc zeromq tree + brew install ccache cmake pkg-config boost libevent berkeley-db@4 qt@5 libnatpmp miniupnpc zeromq tree echo "CCACHE_DIR=${{ runner.temp }}/ccache" >> "$GITHUB_ENV" - name: CMake version