Skip to content

Commit a6d1b01

Browse files
committed
Fix incompatible glibc issue
1 parent 6db9ae2 commit a6d1b01

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

.github/workflows/build_and_test.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ on:
44
push:
55
jobs:
66
build-and-run-tests-ubuntu:
7-
runs-on: ubuntu-latest
7+
# Running on ubuntu-latest would use a glibc version that is incompatible when using the built mex files on a Debian 11
8+
# Instead, run on ubuntu-20.04
9+
runs-on: ubuntu-20.04
810
env:
911
OPENTELEMETRY_MATLAB_INSTALL: "${{ github.workspace }}/otel_matlab_install"
1012
SYSTEM_LIBSTDCPP_PATH: "/usr/lib/x86_64-linux-gnu/libstdc++.so.6"
@@ -24,11 +26,6 @@ jobs:
2426
cmake --build build --config Release --target install
2527
- name: Run tests
2628
env:
27-
# The version of libstdc++ that is bundled with MATLAB is used when building MEX files.
28-
# This version of libstdc++ is incompatible with the system version of libstdc++.
29-
# As a workaround, set LD_PRELOAD to use the system version of libstdc++ with MATLAB.
30-
LD_PRELOAD: ${{ env.SYSTEM_LIBSTDCPP_PATH }}
31-
3229
# Add the installation directory to the MATLAB Search Path by
3330
# setting the MATLABPATH environment variable.
3431
MATLABPATH: ${{ env.OPENTELEMETRY_MATLAB_INSTALL }}

.github/workflows/publish.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ on:
66
- package
77
jobs:
88
build-ubuntu:
9-
runs-on: ubuntu-latest
9+
# Running on ubuntu-latest would use a glibc version that is incompatible when using the built mex files on a Debian 11
10+
# Instead, run on ubuntu-20.04
11+
runs-on: ubuntu-20.04
1012
env:
1113
OPENTELEMETRY_MATLAB_INSTALL: "${{ github.workspace }}/otel_matlab_install"
1214
steps:
@@ -85,7 +87,7 @@ jobs:
8587
path: ${{ github.workspace }}/otel-matlab-macos.tar.gz
8688
package-mltbx:
8789
name: Package MATLAB Toolbox (MLTBX) Files
88-
runs-on: ubuntu-latest
90+
runs-on: ubuntu-20.04
8991
needs:
9092
- build-ubuntu
9193
- build-windows

0 commit comments

Comments
 (0)