diff --git a/.github/workflows/ccpp.yml b/.github/workflows/ccpp.yml index f8ebd10f2..676edaffc 100644 --- a/.github/workflows/ccpp.yml +++ b/.github/workflows/ccpp.yml @@ -1694,3 +1694,25 @@ jobs: for i in $(find uploads -type f -name 'strawberry-*.dmg'); do rsync -e "ssh -p 50220 -o StrictHostKeyChecking=no" -va $i travis@echoes.jkvinge.net:/home/travis/builds/macos/ done + + + build-freebsd: + name: Build FreeBSD + runs-on: macos-latest + steps: + - uses: actions/checkout@v2 + - name: Build FreeBSD + id: build-freebsd + uses: vmactions/freebsd-vm@v0.1.5 + with: + usesh: true + mem: 4096 + prepare: pkg install -y git cmake pkgconf gettext-tools boost-libs glib gnutls qt5-core qt5-concurrent qt5-network qt5-sql qt5-dbus qt5-gui qt5-widgets qt5-buildtools qt5-linguisttools qt5-qmake qt5-sqldrivers-sqlite3 qt5-testlib sqlite gstreamer1 gstreamer1-plugins chromaprint protobuf protobuf-c taglib libcdio libmtp gdk-pixbuf2 libgpod fftw3 googletest iconv + run: | + sed -i'.original' -e 's/set(INCLUDE_GIT_REVISION ON)/set(INCLUDE_GIT_REVISION OFF)/g' cmake/Version.cmake + cmake -E make_directory build + cd build + cmake .. -DCMAKE_BUILD_TYPE=Debug + cmake --build . --config Debug --parallel 4 + cd .. + rm -rf build diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 5e6834135..7099f4008 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1149,6 +1149,9 @@ if(HAVE_LIBMTP) target_link_libraries(strawberry_lib PRIVATE ${LIBMTP_LIBRARIES}) endif(HAVE_LIBMTP) +if(FREEBSD) + target_link_libraries(strawberry_lib PRIVATE iconv) +endif(FREEBSD) if(APPLE) target_link_libraries(strawberry_lib PRIVATE