From f6be3a9ae475f4acd1e96bd7ba3be5dc0544a138 Mon Sep 17 00:00:00 2001 From: Martim Lobao Date: Fri, 8 Nov 2024 12:10:35 +0000 Subject: [PATCH] macos runner fix --- apps.toml | 1 + run.sh | 22 ++++++++++++++-------- 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/apps.toml b/apps.toml index 82c4397..c7c8bf9 100644 --- a/apps.toml +++ b/apps.toml @@ -26,6 +26,7 @@ shfmt = "formula" # Autoformat shell script source code trunk-io = "cask" # Developer experience toolkit used to check, test, merge, and monitor code visual-studio-code = "cask" # Open-source code editor warp = "cask" # Rust-based terminal +yamllint = "formula" # Linter for YAML files [work] aws-sso-cli = "formula" # Securely manage AWS API credentials using AWS SSO diff --git a/run.sh b/run.sh index d6f0ee2..ecf8ccf 100755 --- a/run.sh +++ b/run.sh @@ -42,7 +42,20 @@ sleep 1 # Linux is not supported after this point if [[ ${os} == "Linux" ]]; then - echo "Warning: Linux is not supported after this point." + echo -e "\033[1;33m ⛔️ Warning: Linux is not supported after this point.\033[0m" + exit 0 +fi + +############################################################################### +# macOS preferences # +############################################################################### +# sleep 1 +# echo -e "\033[1;33m🚀 Running macos.sh...\033[0m" +# sudo ./macos.sh + +# check if in GITHUB_ACTIONS is true and exit if it is +if [[ ${GITHUB_ACTIONS} == "true" ]]; then + echo -e "\033[1;33m ⛔️ Warning: macOS is not supported in CI after this point.\033[0m" exit 0 fi @@ -54,13 +67,6 @@ echo -e "\033[1;33m🚀 Running local.sh...\033[0m" sleep 1 ./local.sh "${1-}" -############################################################################### -# macOS preferences # -############################################################################### -# sleep 1 -# echo -e "\033[1;33m🚀 Running macos.sh...\033[0m" -# sudo ./macos.sh - ############################################################################### # Install apps and software # ###############################################################################