فهرست منبع

fix: seperating env for mac test depending upon archs (#2265)

Samiksha Garg 2 سال پیش
والد
کامیت
43a8335fd4
2فایلهای تغییر یافته به همراه7 افزوده شده و 2 حذف شده
  1. 6 1
      frontend/Makefile.toml
  2. 1 1
      frontend/scripts/makefile/tests.toml

+ 6 - 1
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"

+ 1 - 1
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"