From 0c157451cd4e9d50f943766af112bfcef6a418d3 Mon Sep 17 00:00:00 2001 From: chme Date: Sat, 23 May 2020 08:30:27 +0200 Subject: [PATCH] [gh-actions] Fix OSX build in Github actions - fetch raw antlr3 install helper script and make it executable - fix fatal error "'openssl/ssl.h' file not found" while building forked-daapd (included in libwebsocket.h) (https://github.com/libimobiledevice/libimobiledevice/issues/389#issuecomment-289284190) --- .github/workflows/macos.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 8d9a41ef..07222467 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -49,7 +49,8 @@ jobs: - name: Install gperf and antlr3 run: | brew install gperf - wget https://github.com/ejurgensen/actionstest/blob/master/antlr35_install.sh + wget https://raw.githubusercontent.com/ejurgensen/actionstest/master/antlr35_install.sh + chmod +x ./antlr35_install.sh ./antlr35_install.sh -p /usr/local - name: Install other dependencies @@ -61,7 +62,13 @@ jobs: ./configure --enable-chromecast --enable-lastfm --with-pulseaudio - name: Build forked-daapd - run: make + run: | + # Without setting these env vars the build fails with "fatal error: 'openssl/ssl.h' file not found" + # (Solution taken from https://github.com/libimobiledevice/libimobiledevice/issues/389#issuecomment-289284190) + export LD_LIBRARY_PATH=$(brew --prefix openssl)/lib + export CPATH=$(brew --prefix openssl)/include + export PKG_CONFIG_PATH=$(brew --prefix openssl)/lib/pkgconfig + make - name: Install forked-daapd run: sudo make install