2020-10-14 05:06:22 +00:00
|
|
|
name: Build on Windows
|
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
defaults:
|
|
|
|
run:
|
|
|
|
shell: msys2 {0}
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: Building for ${{ matrix.arch }}
|
|
|
|
runs-on: windows-latest
|
|
|
|
strategy:
|
|
|
|
fail-fast: true
|
|
|
|
matrix:
|
|
|
|
include: [
|
|
|
|
{ msystem: MINGW64, arch: x86_64 },
|
|
|
|
{ msystem: MINGW32, arch: i686 }
|
|
|
|
]
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Setup MSYS2
|
|
|
|
uses: msys2/setup-msys2@v2
|
|
|
|
with:
|
|
|
|
msystem: ${{ matrix.msystem }}
|
2020-10-14 05:14:33 +00:00
|
|
|
install: base-devel mingw-w64-${{ matrix.arch }}-gcc mingw-w64-${{ matrix.arch }}-boost mingw-w64-${{ matrix.arch }}-openssl mingw-w64-${{ matrix.arch }}-miniupnpc
|
2020-10-14 05:06:22 +00:00
|
|
|
update: true
|
|
|
|
- name: build application
|
2020-11-17 18:39:46 +00:00
|
|
|
run: |
|
|
|
|
mkdir -p obj/Win32 obj/libi2pd obj/libi2pd_client obj/daemon
|
|
|
|
make USE_UPNP=yes DEBUG=no -j3
|
2021-02-26 21:09:01 +00:00
|
|
|
- name: Upload artifacts
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
path: i2pd.exe
|