Skip to content
Merged
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
5 changes: 5 additions & 0 deletions .github/workflows/build_and_test_full.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ jobs:
- name: Install MATLAB
uses: matlab-actions/setup-matlab@v2
with:
release: R2025a
products: MATLAB_Compiler MATLAB_Compiler_SDK
- name: Build OpenTelemetry-Matlab
working-directory: opentelemetry-matlab
Expand Down Expand Up @@ -70,6 +71,7 @@ jobs:
- name: Install MATLAB
uses: matlab-actions/setup-matlab@v2
with:
release: R2025a
products: MATLAB_Compiler MATLAB_Compiler_SDK
- name: Build OpenTelemetry-Matlab
working-directory: opentelemetry-matlab
Expand Down Expand Up @@ -106,6 +108,8 @@ jobs:
- name: Install MATLAB
uses: matlab-actions/setup-matlab@v2
with:
# pin to R2024b because R2025a has an issue that causes a failure when building the context_propagation example
release: R2024b
products: MATLAB_Compiler MATLAB_Compiler_SDK
- name: Build OpenTelemetry-Matlab
working-directory: opentelemetry-matlab
Expand Down Expand Up @@ -140,6 +144,7 @@ jobs:
- name: Install MATLAB
uses: matlab-actions/setup-matlab@v2
with:
release: R2025a
products: MATLAB_Compiler MATLAB_Compiler_SDK
- name: Build OpenTelemetry-Matlab
working-directory: opentelemetry-matlab
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/build_and_test_simple.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ jobs:
- name: Install MATLAB
uses: matlab-actions/setup-matlab@v2
with:
release: R2025a
products: MATLAB_Compiler MATLAB_Compiler_SDK
- name: Build OpenTelemetry-Matlab
working-directory: opentelemetry-matlab
Expand Down Expand Up @@ -70,6 +71,8 @@ jobs:
- name: Install MATLAB
uses: matlab-actions/setup-matlab@v2
with:
# pin to R2024b because R2025a has an issue that causes a failure when building the context_propagation example
release: R2024b
products: MATLAB_Compiler MATLAB_Compiler_SDK
- name: Build OpenTelemetry-Matlab
working-directory: opentelemetry-matlab
Expand Down Expand Up @@ -104,6 +107,7 @@ jobs:
- name: Install MATLAB
uses: matlab-actions/setup-matlab@v2
with:
release: R2025a
products: MATLAB_Compiler MATLAB_Compiler_SDK
- name: Build OpenTelemetry-Matlab
working-directory: opentelemetry-matlab
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/create_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
- name: Install MATLAB
uses: matlab-actions/setup-matlab@v2
with:
release: R2025a
products: MATLAB_Compiler
- name: Build OpenTelemetry-Matlab
working-directory: opentelemetry-matlab
Expand Down Expand Up @@ -46,6 +47,7 @@ jobs:
- name: Install MATLAB
uses: matlab-actions/setup-matlab@v2
with:
release: R2025a
products: MATLAB_Compiler
- name: Build OpenTelemetry-Matlab
working-directory: opentelemetry-matlab
Expand Down Expand Up @@ -79,6 +81,7 @@ jobs:
- name: Install MATLAB
uses: matlab-actions/setup-matlab@v2
with:
release: R2025a
products: MATLAB_Compiler
- name: Build OpenTelemetry-Matlab
working-directory: opentelemetry-matlab
Expand Down Expand Up @@ -121,7 +124,9 @@ jobs:
tar -xzvf otel-matlab-macos-14.tar.gz
tar -xzvf otel-matlab-windows.tar.gz
- name: Install MATLAB
uses: matlab-actions/setup-matlab@v1
uses: matlab-actions/setup-matlab@v2
with:
release: R2025a
- name: Run commands
env:
MATLABPATH: OpenTelemetry-Matlab/tools
Expand Down
8 changes: 6 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ else()

set(VCPKG_FETCH_CONTENT_NAME vcpkg)
set(VCPKG_GIT_REPOSITORY "https://github.com/microsoft/vcpkg.git")
set(VCPKG_GIT_TAG "f7423ee")
set(VCPKG_GIT_TAG "b02e341")
FetchContent_Declare(
${VCPKG_FETCH_CONTENT_NAME}
GIT_REPOSITORY ${VCPKG_GIT_REPOSITORY}
Expand Down Expand Up @@ -56,7 +56,11 @@ if(APPLE)
# use libcurl as a shared library and load the MATLAB version at runtime
# run uname -m to determine whether arm64 or x86_64
exec_program(uname ARGS -m OUTPUT_VARIABLE MAC_HOST_SYSTEM)
set(VCPKG_OTEL_TRIPLET ${MAC_HOST_SYSTEM}-osx-otel-matlab)
if(${MAC_HOST_SYSTEM} STREQUAL "arm64")
set(VCPKG_OTEL_TRIPLET "arm64-osx-otel-matlab")
elseif(${MAC_HOST_SYSTEM} STREQUAL "x86_64")
set(VCPKG_OTEL_TRIPLET "x64-osx-otel-matlab")
endif()
set(VCPKG_OVERLAY_TRIPLETS ${CMAKE_SOURCE_DIR}/cmake/vcpkg_triplets)
set(VCPKG_TARGET_TRIPLET ${VCPKG_OTEL_TRIPLET})
set(TRIPLET_DEFINITIONS -DVCPKG_TARGET_TRIPLET=${VCPKG_TARGET_TRIPLET})
Expand Down
6 changes: 6 additions & 0 deletions cmake/vcpkg_triplets/arm64-osx-otel-matlab.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ if(${PORT} MATCHES "(curl|zlib)")
else()
set(VCPKG_LIBRARY_LINKAGE static)
endif()
# disable the script to fix rpath for curl, which makes an undesirable change to
# the install name from @rpath/libcurl.4.dylib to @rpath/libcurl.4.8.0.dylib
if(${PORT} MATCHES "curl")
set(VCPKG_FIXUP_MACHO_RPATH OFF)
endif()


set(VCPKG_CMAKE_SYSTEM_NAME Darwin)
set(VCPKG_OSX_ARCHITECTURES arm64)
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ if(${PORT} MATCHES "(curl|zlib)")
else()
set(VCPKG_LIBRARY_LINKAGE static)
endif()
# disable the script to fix rpath for curl, which makes an undesirable change to
# the install name from @rpath/libcurl.4.dylib to @rpath/libcurl.4.8.0.dylib
if(${PORT} MATCHES "curl")
set(VCPKG_FIXUP_MACHO_RPATH OFF)
endif()

set(VCPKG_CMAKE_SYSTEM_NAME Darwin)
set(VCPKG_OSX_ARCHITECTURES x86_64)
Loading