2020-12-07 08:36:06 +03:00
|
|
|
name: Build on FreeBSD
|
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2022-07-21 23:36:51 +03:00
|
|
|
runs-on: macos-12
|
2020-12-07 08:36:06 +03:00
|
|
|
name: with UPnP
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Test in FreeBSD
|
|
|
|
id: test
|
2022-11-04 21:08:25 +03:00
|
|
|
uses: vmactions/freebsd-vm@v0.3.0
|
2020-12-07 08:36:06 +03:00
|
|
|
with:
|
|
|
|
usesh: true
|
2021-11-27 23:46:03 +03:00
|
|
|
mem: 2048
|
2022-11-04 21:08:25 +03:00
|
|
|
sync: rsync
|
|
|
|
copyback: true
|
|
|
|
prepare: pkg install -y devel/cmake devel/gmake devel/boost-libs security/openssl net/miniupnpc
|
2020-12-07 08:36:06 +03:00
|
|
|
run: |
|
|
|
|
cd build
|
|
|
|
cmake -DWITH_UPNP=ON -DCMAKE_BUILD_TYPE=Release .
|
|
|
|
gmake -j2
|
2022-11-04 21:08:25 +03:00
|
|
|
- name: Upload artifacts
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
name: i2pd-freebsd
|
|
|
|
path: build/i2pd
|