Skip to content

Commit ffaf3b6

Browse files
committed
debug upb build failure on mac
1 parent cc265eb commit ffaf3b6

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: "Debug Mac upb build failure"
2+
on:
3+
workflow_dispatch:
4+
push:
5+
branches:
6+
- mac_upb_debug
7+
env:
8+
MLM_LICENSE_TOKEN: ${{ secrets.MLM_LICENSE_TOKEN }}
9+
jobs:
10+
build-and-run-tests-macos:
11+
runs-on: macos-14
12+
needs: get_version
13+
env:
14+
OPENTELEMETRY_MATLAB_INSTALL: "${{ github.workspace }}/otel_matlab_install"
15+
steps:
16+
- name: Download OpenTelemetry-Matlab source
17+
uses: actions/checkout@v3
18+
with:
19+
path: opentelemetry-matlab
20+
- name: Install ninja-build
21+
run: brew install ninja
22+
- name: Install MATLAB
23+
uses: matlab-actions/setup-matlab@v2
24+
with:
25+
release: R2025a
26+
products: MATLAB_Compiler MATLAB_Compiler_SDK
27+
- name: Build OpenTelemetry-Matlab
28+
working-directory: opentelemetry-matlab
29+
run: |
30+
cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DWITH_EXAMPLES=ON -DWITH_OTLP_GRPC=ON -DUSE_BATCH_FOR_MCC=ON -DCMAKE_INSTALL_PREFIX=${{ env.OPENTELEMETRY_MATLAB_INSTALL }}
31+
cmake --build build --config Release --target install
32+
- name: Run tests
33+
env:
34+
# Add the installation directory to the MATLAB Search Path by
35+
# setting the MATLABPATH environment variable.
36+
MATLABPATH: ${{ env.OPENTELEMETRY_MATLAB_INSTALL }}
37+
uses: matlab-actions/run-tests@v2
38+
with:
39+
select-by-folder: opentelemetry-matlab/test

0 commit comments

Comments
 (0)