Skip to content

Commit b3e66a4

Browse files
committed
add workflow file for debugging
1 parent be526bd commit b3e66a4

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: "Debug MacOS Dependencies"
2+
on:
3+
workflow_dispatch:
4+
push:
5+
branches:
6+
- 'debug_mac_dependencies'
7+
jobs:
8+
build-macos:
9+
runs-on: macos-14
10+
env:
11+
OPENTELEMETRY_MATLAB_INSTALL: "${{ github.workspace }}/otel_matlab_install"
12+
steps:
13+
- name: Download OpenTelemetry-Matlab source
14+
uses: actions/checkout@v3
15+
with:
16+
path: opentelemetry-matlab
17+
- name: Install ninja-build
18+
run: brew install ninja
19+
- name: Install MATLAB
20+
uses: matlab-actions/setup-matlab@v2
21+
with:
22+
products: MATLAB_Compiler
23+
- name: Build OpenTelemetry-Matlab
24+
working-directory: opentelemetry-matlab
25+
run: |
26+
cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DWITH_OTLP_GRPC=ON -DWITH_OTLP_FILE=ON -DCMAKE_INSTALL_PREFIX=${{ env.OPENTELEMETRY_MATLAB_INSTALL }}
27+
cmake --build build --config Release --target install
28+
- name: Compress into single artifact
29+
working-directory: ${{ github.workspace }}
30+
run: tar -czf otel-matlab-macos.tar.gz otel_matlab_install
31+
- name: Upload artifacts
32+
uses: actions/upload-artifact@v4
33+
with:
34+
name: otel-matlab-macos.tar.gz
35+
path: ${{ github.workspace }}/otel-matlab-macos.tar.gz

0 commit comments

Comments
 (0)