From 6c519a7935bac48b515ddb2ffdc8f65e2218227c Mon Sep 17 00:00:00 2001 From: Alfredo Correa Date: Sat, 5 Oct 2024 22:46:59 +0000 Subject: [PATCH] try vcpkg --- .gitlab-ci.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 66ef49fb..0e0d4111 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -283,21 +283,24 @@ vs2019-windows: - choco install -y poshgit # - Install-Module posh-git -Scope CurrentUser -Force - git clone https://github.com/microsoft/vcpkg.git + - .\vcpkg\bootstrap-vcpkg.bat + - .\vcpkg\vcpkg install boost-multi-array boost-timer boost-serialization + - echo "BOOST_ROOT=$(Get-Location)\vcpkg\installed\x64-windows" >> $env:GITHUB_ENV + - echo "BOOST_INCLUDEDIR=$(Get-Location)\vcpkg\installed\x64-windows\include" >> $env:GITHUB_ENV + - echo "BOOST_LIBRARYDIR=$(Get-Location)\vcpkg\installed\x64-windows\lib" >> $env:GITHUB_ENV + - echo "PATH=$(Get-Location)\vcpkg\installed\x64-windows\bin;$env:PATH" >> $env:GITHUB_ENV - choco --version - choco install -y visualstudio2019community # 16.11.36.0 # The CXX compiler identification is MSVC 19.40.33811.0 # - choco install -y boost-msvc-14.2 --version 1.74.0 --x64 - - Invoke-WebRequest -UserAgent curl https://downloads.sourceforge.net/project/boost/boost-binaries/1.74.0/boost_1_74_0-msvc-14.2-64.exe -OutFile boost_1_74_0-msvc-14.2-64.exe + # - Invoke-WebRequest -UserAgent curl https://downloads.sourceforge.net/project/boost/boost-binaries/1.74.0/boost_1_74_0-msvc-14.2-64.exe -OutFile boost_1_74_0-msvc-14.2-64.exe # - Invoke-WebRequest 'https://pilotfiber.dl.sourceforge.net/project/boost/boost-binaries/1.74.0/boost_1_74_0-msvc-14.2-64.exe?viasf=1' -OutFile 'boost_1_74_0-msvc-14.2-64.exe' - - .\boost_1_74_0-msvc-14.2-64.exe /sp- /verysilent /suppressmsgboxes /norestart /components="test" | more + # - .\boost_1_74_0-msvc-14.2-64.exe /sp- /verysilent /suppressmsgboxes /norestart /components="test" | more - mkdir build - cmake --version - - cmake -S . -B build -DCMAKE_CXX_STANDARD=20 -DCMAKE_BUILD_TYPE=Release -A x64 + - cmake -S . -B build -DCMAKE_CXX_STANDARD=20 -DCMAKE_BUILD_TYPE=Release -A x64 -DCMAKE_TOOLCHAIN_FILE=.\vcpkg\scripts\buildsystems\vcpkg.cmake -DBOOST_ROOT=.\vcpkg\installed\x64-windows - cmake --build build --config Release --parallel 2 --verbose - $env:Path += ';C:\local\boost_1_74_0\lib64-msvc-14.2' - ctest --test-dir build --output-on-failure -C Release - - git clone https://github.com/microsoft/vcpkg.git - - .\vcpkg\bootstrap-vcpkg.bat - - .\vcpkg\vcpkg install boost-multi-array boost-timer boost-serialization tags: - saas-windows-medium-amd64 needs: ["clang++", "g++"]