i2pd/.github/workflows/build-windows-msvc.yml
Workflow config file is invalid. Please check your config file: yaml: line 23: mapping values are not allowed in this context
R4SAS 745fda18bc
[gha] use choco to install boost and openssl...
Signed-off-by: R4SAS <r4sas@i2pmail.org>
2023-03-08 14:28:24 +00:00

47 lines
1 KiB
YAML

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://git.io/JnHTY -OutFile install_zlib.bat)"; ./install_zlib.bat; del install_zlib.bat
- name: Install Boost
uses: crazy-max/ghaction-chocolatey@v2
with:
args: install boost-msvc-14.3
- name: Install OpenSSL
uses: crazy-max/ghaction-chocolatey@v2
with:
args: install openssl
- name: Configure
working-directory: build
run: cmake -G "Visual Studio 16 2019" .
env:
WITH_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.zip
path: build/Debug/i2pd.*