From 43a8335fd455823f6c538b60917b94285baab127 Mon Sep 17 00:00:00 2001 From: Samiksha Garg <79906086+Samiksha-Garg@users.noreply.github.com> Date: Mon, 17 Apr 2023 06:49:55 +0530 Subject: [PATCH] fix: seperating env for mac test depending upon archs (#2265) --- frontend/Makefile.toml | 7 ++++++- frontend/scripts/makefile/tests.toml | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/frontend/Makefile.toml b/frontend/Makefile.toml index c7ac53e5c3..f9b5e0dd99 100644 --- a/frontend/Makefile.toml +++ b/frontend/Makefile.toml @@ -205,12 +205,17 @@ script = [ ] script_runner = "@duckscript" -[env.test-macos] +[env.test-macos-x86_64] TEST_CRATE_TYPE = "cdylib" TEST_LIB_EXT = "dylib" # For the moment, the DynamicLibrary only supports open x86_64 architectures binary. TEST_COMPILE_TARGET = "x86_64-apple-darwin" +[env.test-macos-arm64] +TEST_CRATE_TYPE = "cdylib" +TEST_LIB_EXT = "dylib" +TEST_COMPILE_TARGET = "aarch64-apple-darwin" + [env.test-linux] TEST_CRATE_TYPE = "cdylib" TEST_LIB_EXT = "so" diff --git a/frontend/scripts/makefile/tests.toml b/frontend/scripts/makefile/tests.toml index 3f85eaa75e..1ab206ea8a 100644 --- a/frontend/scripts/makefile/tests.toml +++ b/frontend/scripts/makefile/tests.toml @@ -1,7 +1,7 @@ [tasks.dart_unit_test] script = ''' -cargo make --profile test-macos run_dart_unit_test +cargo make --profile test-macos-$(uname -m) run_dart_unit_test ''' script_runner = "@shell"