From fb8263f9b91b5cd3a2b8b0230bb5469417a2bbed Mon Sep 17 00:00:00 2001 From: R4SAS Date: Wed, 8 Mar 2023 12:58:24 +0000 Subject: [PATCH] [gha] try to install boost using other way Signed-off-by: R4SAS --- .github/workflows/build-windows-msvc.yml | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build-windows-msvc.yml b/.github/workflows/build-windows-msvc.yml index 6a8f4c67..ddae3030 100644 --- a/.github/workflows/build-windows-msvc.yml +++ b/.github/workflows/build-windows-msvc.yml @@ -20,22 +20,19 @@ jobs: run: powershell -Command "(Invoke-WebRequest -Uri https://git.io/JnHTY -OutFile install_zlib.bat)"; ./install_zlib.bat; del install_zlib.bat - name: Install boost - uses: MarkusJx/install-boost@v2.4.4 - id: install-boost - with: - boost_version: 1.81.0 - boost_install_dir: C:\boost - platform_version: 2019 - toolset: msvc - link: static + run: | + $Url = "https://sourceforge.net/projects/boost/files/boost-binaries/1.81.0/boost_1_81_0-msvc-14.2-64.exe" + (New-Object System.Net.WebClient).DownloadFile($Url, "$env:TEMP\boost.exe") + Start-Process -Wait -FilePath "$env:TEMP\boost.exe" "/SILENT","/SP-","/SUPPRESSMSGBOXES","/DIR=C:\hostedtoolcache\windows\Boost\1.81.0\x86_64" - name: Build application run: | cd build - cmake -DWITH_STATIC=ON . + cmake -G "Visual Studio 16 2019" . cmake --build . --config Debug -- -m env: - BOOST_ROOT: ${{ steps.install-boost.outputs.BOOST_ROOT }} + BOOST_ROOT: C:\hostedtoolcache\windows\Boost\1.81.0\x86_64 + WITH_STATIC: ON - name: Upload artifacts uses: actions/upload-artifact@v3