mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-22 21:37:17 +01:00
add FreeBSD builder for GHA (#1595)
This commit is contained in:
parent
9a2c6a7619
commit
ac67cd7f9a
20
.github/workflows/build-freebsd.yml
vendored
Normal file
20
.github/workflows/build-freebsd.yml
vendored
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
name: Build on FreeBSD
|
||||||
|
|
||||||
|
on: [push, pull_request]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: macos-latest
|
||||||
|
name: with UPnP
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Test in FreeBSD
|
||||||
|
id: test
|
||||||
|
uses: vmactions/freebsd-vm@v0.0.9
|
||||||
|
with:
|
||||||
|
usesh: true
|
||||||
|
prepare: pkg install -y devel/cmake devel/gmake devel/boost-libs security/openssl net/miniupnpc
|
||||||
|
run: |
|
||||||
|
cd build
|
||||||
|
cmake -DWITH_UPNP=ON -DCMAKE_BUILD_TYPE=Release .
|
||||||
|
gmake -j2
|
|
@ -122,7 +122,7 @@ namespace util
|
||||||
#if defined (__APPLE__)
|
#if defined (__APPLE__)
|
||||||
pthread_setname_np(name);
|
pthread_setname_np(name);
|
||||||
#elif defined(__FreeBSD__)
|
#elif defined(__FreeBSD__)
|
||||||
pthread_set_name_np(pthread_self(), name)
|
pthread_set_name_np(pthread_self(), name);
|
||||||
#else
|
#else
|
||||||
pthread_setname_np(pthread_self(), name);
|
pthread_setname_np(pthread_self(), name);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue