i2pd/.github/workflows/build-windows-msvc.yml

63 lines
1.9 KiB
YAML
Raw Normal View History

2023-03-10 01:32:07 +00:00
name: Build on Windows with MSVC
on: [push, pull_request]
jobs:
build:
name: Build
runs-on: windows-latest
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://raw.githubusercontent.com/r4sas/zlib.install/master/install.bat -OutFile install_zlib.bat)"
powershell -Command "(Get-Content install_zlib.bat) | Set-Content install_zlib.bat" # fixing line endings
set BUILD_TYPE=Debug
./install_zlib.bat
set BUILD_TYPE=Release
./install_zlib.bat
del install_zlib.bat
#- name: Install Boost
# uses: crazy-max/ghaction-chocolatey@v2
# with:
# args: install boost-msvc-14.3 --version=1.81.0
#- name: Install OpenSSL
# uses: crazy-max/ghaction-chocolatey@v2
# with:
# args: install openssl
2023-03-10 01:32:07 +00:00
- name: Install Boost
run: |
powershell -Command "(Invoke-WebRequest -UserAgent "Wget" -Uri https://sourceforge.net/projects/boost/files/boost-binaries/1.81.0/boost_1_81_0-msvc-14.3-64.exe/download -OutFile boost_1_84_0-msvc-14.3-64.exe)"
./boost_1_84_0-msvc-14.3-64.exe /VERYSILENT
2023-03-10 01:32:07 +00:00
- name: Install OpenSSL
run: |
powershell -Command "(Invoke-WebRequest -UserAgent "Wget" -Uri https://slproweb.com/download/Win64OpenSSL-3_2_0.exe -OutFile Win64OpenSSL-3_2_0.exe)"
./Win64OpenSSL-3_2_0.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-
2023-03-10 01:32:07 +00:00
- name: Configure
working-directory: build
run: cmake -DWITH_STATIC=ON .
- name: Build
working-directory: build
run: cmake --build . --config Debug -- -m
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: i2pd-msvc
path: build/Debug/i2pd.*