From 06db64e35a2913b22e9bc81c8f6854aff40823f6 Mon Sep 17 00:00:00 2001 From: Unai Martinez-Corral Date: Thu, 13 Apr 2023 13:48:48 +0100 Subject: [PATCH] ci: merge download_sdk.sh into action.yml Signed-off-by: Unai Martinez-Corral --- ci/action.yml | 6 +++++- ci/download_sdk.sh | 5 ----- 2 files changed, 5 insertions(+), 6 deletions(-) delete mode 100755 ci/download_sdk.sh diff --git a/ci/action.yml b/ci/action.yml index d108ab52..dad36aed 100644 --- a/ci/action.yml +++ b/ci/action.yml @@ -16,7 +16,11 @@ runs: export CI_SCRIPTS_PATH="$GITHUB_ACTION_PATH" source $GITHUB_ACTION_PATH/common.sh - bash $GITHUB_ACTION_PATH/download_sdk.sh + if [ $OS_NAME = 'osx' ]; then + if [[ ! -d $HOME/sdk/MacOSX10.9.sdk ]]; then + git clone https://github.com/phracker/MacOSX-SDKs $HOME/sdk + fi + fi bash $GITHUB_ACTION_PATH/install.sh set -x if [ $SCRIPT ]; then diff --git a/ci/download_sdk.sh b/ci/download_sdk.sh deleted file mode 100755 index 97f6d798..00000000 --- a/ci/download_sdk.sh +++ /dev/null @@ -1,5 +0,0 @@ -if [ $OS_NAME = 'osx' ]; then - if [[ ! -d $HOME/sdk/MacOSX10.9.sdk ]]; then - git clone https://github.com/phracker/MacOSX-SDKs $HOME/sdk - fi -fi