name: Build on Windows on: [push, pull_request] jobs: build: name: CMake MSVC runs-on: windows-2019 strategy: fail-fast: false steps: - name: Checkout uses: actions/checkout@v3 with: fetch-depth: 0 - name: Build and install zlib run: powershell -Command "(Invoke-WebRequest -Uri https://git.io/JnHTY -OutFile install_zlib.bat)"; ./install_zlib.bat; del install_zlib.bat - name: Install boost 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 -G "Visual Studio 16 2019" . cmake --build . --config Debug -- -m env: BOOST_ROOT: C:\hostedtoolcache\windows\Boost\1.81.0\x86_64 WITH_STATIC: ON - name: Upload artifacts uses: actions/upload-artifact@v3 with: name: i2pd-msvc.zip path: build/Debug/i2pd.*