Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,8 @@ build-linux:
build-macos:
stage: build
dependencies: []
tags: [macos:sonoma, specific:true] # Use AMI dd-sdk-cpp-sonoma, w/ Xcode 15.3.0, AppleClang 15
tags: [macos:tart]
image: "486234852809.dkr.ecr.us-east-1.amazonaws.com/ci/ci-platform-machine-images/tart-vm:dd-sdk-cpp-sonoma-latest"
parallel:
# Ensure that all targets build on macOS
matrix:
Expand Down Expand Up @@ -229,8 +230,11 @@ build-macos:
test-macos:
stage: build
dependencies: []
tags: [macos:sonoma, specific:true] # Use AMI dd-sdk-cpp-sonoma
tags: [macos:tart]
image: "486234852809.dkr.ecr.us-east-1.amazonaws.com/ci/ci-platform-machine-images/tart-vm:dd-sdk-cpp-sonoma-latest"
script:
- export PYENV_ROOT="$HOME/.pyenv"
- export PATH="$PYENV_ROOT/shims:$PYENV_ROOT/bin:$PATH"
- python -m venv .venv && .venv/bin/python -m pip install -e '.[integration-test]'
- >
cmake
Expand Down Expand Up @@ -321,7 +325,8 @@ package-linux:
package-macos:
stage: package
dependencies: []
tags: [macos:sonoma, specific:true] # Use AMI dd-sdk-cpp-sonoma, w/ Xcode 15.3.0, AppleClang 15
tags: [macos:tart]
image: "486234852809.dkr.ecr.us-east-1.amazonaws.com/ci/ci-platform-machine-images/tart-vm:dd-sdk-cpp-sonoma-latest"
parallel:
matrix:
# macos-{arch}-clang-libc++-shared-release
Expand Down
5 changes: 3 additions & 2 deletions tests/impl/core/platform/system_info_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,10 @@ TEST_CASE("SystemInfo", "[unit][platform-system-info]") {
// And the brand is "Apple"
REQUIRE(device_info.brand == "Apple");

// And the model starts with "Mac" (if not empty)
// And the model starts with "VirtualMac" (if not empty); CI runs in
// Apple Virtualization VMs, which report hw.model as "VirtualMac<N>,<M>".
if (!device_info.model.empty()) {
REQUIRE(device_info.model.find("Mac") == 0);
REQUIRE(device_info.model.find("VirtualMac") == 0);
}

// And the name is an alphabetical prefix of the model (if both are present)
Expand Down