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

This commit is contained in:
Samiksha Garg 2023-04-17 06:49:55 +05:30 committed by GitHub
parent b451303156
commit 43a8335fd4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

View File

@ -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"

View File

@ -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"