mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-26 22:23:17 -05:00
[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)
This commit is contained in:
parent
18a37f7177
commit
0c157451cd
11
.github/workflows/macos.yml
vendored
11
.github/workflows/macos.yml
vendored
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user