Skip to content

Commit

Permalink
try vcpkg
Browse files Browse the repository at this point in the history
  • Loading branch information
correaa committed Oct 5, 2024
1 parent 4a5c826 commit 6c519a7
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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++"]
Expand Down

0 comments on commit 6c519a7

Please sign in to comment.