mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2024-11-17 21:26:04 +00:00
03bcdceb9b
Signed-off-by: R4SAS <r4sas@i2pmail.org>
38 lines
1.1 KiB
YAML
38 lines
1.1 KiB
YAML
name: Build on Windows
|
|
|
|
on: [push, pull_request]
|
|
|
|
defaults:
|
|
run:
|
|
shell: msys2 {0}
|
|
|
|
jobs:
|
|
build:
|
|
name: Building using ${{ matrix.arch }} toolchain
|
|
runs-on: windows-latest
|
|
strategy:
|
|
fail-fast: true
|
|
matrix:
|
|
include: [
|
|
{ msystem: UCRT64, arch: ucrt-x86_64, arch_short: x64-ucrt },
|
|
{ msystem: MINGW64, arch: x86_64, arch_short: x64 },
|
|
{ msystem: MINGW32, arch: i686, arch_short: x86 }
|
|
]
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Setup MSYS2
|
|
uses: msys2/setup-msys2@v2
|
|
with:
|
|
msystem: ${{ matrix.msystem }}
|
|
install: base-devel mingw-w64-${{ matrix.arch }}-gcc mingw-w64-${{ matrix.arch }}-boost mingw-w64-${{ matrix.arch }}-openssl mingw-w64-${{ matrix.arch }}-miniupnpc
|
|
update: true
|
|
- name: Build application
|
|
run: |
|
|
mkdir -p obj/Win32 obj/libi2pd obj/libi2pd_client obj/daemon
|
|
make USE_UPNP=yes DEBUG=no USE_GIT_VERSION=yes -j3
|
|
- name: Upload artifacts
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: i2pd-${{ matrix.arch_short }}.exe
|
|
path: i2pd.exe
|