From a06af0ac347daec4c75ebb57da74d4a0844ef8ef Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Thu, 13 Jan 2022 12:01:57 +0100 Subject: [PATCH] GitHub CI: current NDI bug workaround --- .github/scripts/macOS/prepare.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/scripts/macOS/prepare.sh b/.github/scripts/macOS/prepare.sh index 863a33b3f..16a525b19 100755 --- a/.github/scripts/macOS/prepare.sh +++ b/.github/scripts/macOS/prepare.sh @@ -65,6 +65,8 @@ install_ndi() { NDI_LIB=/Library/NDI/lib/x64 else # NDI 5 NDI_LIB=/Library/NDI/lib/macOS + # TODO: remove - workaround for not using struct keyword causing C code fail + sudo sed -i -e 's/typedef \([^ ]*_instance_type\)/typedef struct \1/' /Library/NDI/include/* fi export CPATH=${CPATH:+"$CPATH:"}/Library/NDI/include export DYLIBBUNDLER_FLAGS="${DYLIBBUNDLER_FLAGS:+$DYLIBBUNDLER_FLAGS }-s $NDI_LIB"