Skip to content

Commit

Permalink
windows ci, install msvc before boost
Browse files Browse the repository at this point in the history
  • Loading branch information
alfC committed Oct 6, 2024
1 parent 1dc6188 commit fec0bfd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,12 @@ vs2019-windows:
allow_failure: true
interruptible: true
script:
- 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 '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
- choco install -y poshgit
# - Install-Module posh-git -Scope CurrentUser -Force
- git clone https://github.com/microsoft/vcpkg.git
Expand All @@ -289,12 +295,6 @@ vs2019-windows:
- 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 '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
- mkdir build
- cmake --version
- 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
Expand Down
5 changes: 5 additions & 0 deletions pre-push
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,8 @@ export VALGRIND_EXE="valgrind --trace-children=yes --leak-check=full --track-ori

## sudo setfacl --modify user:correaa:rw /var/run/docker.sock
# gitlab-runner exec docker rocm

# to recover from GPU error (e.g. after hibernating)
# fuser --kill /dev/nvidia-uvm
# sudo modprobe -r nvidia_uvm
# sudo modprobe nvidia_uvm

0 comments on commit fec0bfd

Please sign in to comment.