From 3618a575c6e98183ce59356ff631678ecc6241a2 Mon Sep 17 00:00:00 2001 From: Mitchell Tracy Date: Thu, 7 Mar 2024 09:58:34 -0500 Subject: [PATCH 1/2] build avm transpiler if we are on mac --- avm-transpiler/bootstrap.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/avm-transpiler/bootstrap.sh b/avm-transpiler/bootstrap.sh index e3446b3e6f1..28d999a25dd 100755 --- a/avm-transpiler/bootstrap.sh +++ b/avm-transpiler/bootstrap.sh @@ -17,6 +17,8 @@ if [ -n "$CMD" ]; then fi # Attempt to just pull artefacts from CI and exit on success. -[ -n "${USE_CACHE:-}" ] && ./bootstrap_cache.sh && exit +if [ "$(uname)" != "Darwin" ] && [ -n "${USE_CACHE:-}" ]; then + ./bootstrap_cache.sh && exit +fi -./scripts/bootstrap_native.sh \ No newline at end of file +./scripts/bootstrap_native.sh From 69a93c36d84fe439bc1fd533d4922b6beaf94a85 Mon Sep 17 00:00:00 2001 From: Mitchell Tracy Date: Thu, 7 Mar 2024 10:03:17 -0500 Subject: [PATCH 2/2] use OSTYPE instead of uname --- avm-transpiler/bootstrap.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/avm-transpiler/bootstrap.sh b/avm-transpiler/bootstrap.sh index 28d999a25dd..2b5e2b3b527 100755 --- a/avm-transpiler/bootstrap.sh +++ b/avm-transpiler/bootstrap.sh @@ -17,7 +17,7 @@ if [ -n "$CMD" ]; then fi # Attempt to just pull artefacts from CI and exit on success. -if [ "$(uname)" != "Darwin" ] && [ -n "${USE_CACHE:-}" ]; then +if [[ "$OSTYPE" != "darwin"* ]] && [ -n "${USE_CACHE:-}" ]; then ./bootstrap_cache.sh && exit fi