mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-08-27 02:30:33 +01:00
47 lines
1.1 KiB
YAML
47 lines
1.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
|
|
env:
|
|
BUILD_TYPE: Debug
|
|
run: powershell -Command "(Invoke-WebRequest -Uri https://github.com/r4sas/zlib.install/raw/master/install.bat -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 -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.*
|
|
|