From 973d8be894aa7ba679ff2d407aa4d94405493781 Mon Sep 17 00:00:00 2001 From: Riccardo Balbo Date: Thu, 31 Oct 2019 22:35:30 +0100 Subject: [PATCH] Hotfix expired certificate for macOS_SDK_headers_for_macOS_10.14 --- .github/workflows/main.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3d067c7c8..b5bbdab25 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -150,7 +150,17 @@ jobs: echo "Prepare mac" # We need this older version to compile for 32bit... sudo xcode-select -switch /Applications/Xcode_9.4.1.app + + # ghetto fix for expired certificate (still safer than -allowUntrusted) + cdate=`date +%m%d%H%M%y` + sudo date -u 1020000019 + + sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg -target / + + # restore real date + sudo date -u "$cdate" + elif [ "$OS_NAME" = "linux" ]; then echo "Prepare linux"