Browse Source

add FreeBSD builder for GHA (#1595)

pull/1601/head
R4SAS 4 years ago committed by GitHub
parent
commit
ac67cd7f9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 20
      .github/workflows/build-freebsd.yml
  2. 2
      libi2pd/util.cpp

20
.github/workflows/build-freebsd.yml

@ -0,0 +1,20 @@ @@ -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

2
libi2pd/util.cpp

@ -122,7 +122,7 @@ namespace util @@ -122,7 +122,7 @@ namespace util
#if defined (__APPLE__)
pthread_setname_np(name);
#elif defined(__FreeBSD__)
pthread_set_name_np(pthread_self(), name)
pthread_set_name_np(pthread_self(), name);
#else
pthread_setname_np(pthread_self(), name);
#endif

Loading…
Cancel
Save