From 8efdce2337aaf1d73abc0a39d15b14d4d0382cf4 Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Thu, 12 Jan 2023 09:35:49 +0100 Subject: [PATCH] CI: fixed Windows natpmp build error Fixes failed run https://github.com/CESNET/UltraGrid/actions/runs/3894640814/jobs/6648919900. cmd.exe script for unknown reason ceased to work, copied appropriate parts of script to our script. + use shell debug flag for the script --- .github/scripts/Windows/install_natpmp.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/scripts/Windows/install_natpmp.sh b/.github/scripts/Windows/install_natpmp.sh index 0121d6912..94fe80ce3 100755 --- a/.github/scripts/Windows/install_natpmp.sh +++ b/.github/scripts/Windows/install_natpmp.sh @@ -1,8 +1,13 @@ -#!/bin/sh -eu +#!/bin/sh -eux git clone --depth 1 https://github.com/miniupnp/libnatpmp cd libnatpmp -cmd /c build.bat + +gcc -c -Wall -Os -DWIN32 -DNATPMP_STATICLIB -DENABLE_STRNATPMPERR getgateway.c +gcc -c -Wall -Os -DWIN32 -DNATPMP_STATICLIB -DENABLE_STRNATPMPERR natpmp.c +gcc -c -Wall -Os -DWIN32 wingettimeofday.c +ar cr natpmp.a getgateway.o natpmp.o wingettimeofday.o + cp natpmp.a /usr/local/lib/libnatpmp.a cp natpmp_declspec.h natpmp.h /usr/local/include cd -