Skip to content

Commit

Permalink
Actions: Set LD_LIBRARY_PATH on unix
Browse files Browse the repository at this point in the history
  • Loading branch information
simmsa committed Jan 30, 2025
1 parent 5d6ffb9 commit ed1d86e
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/unix_unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,14 @@ jobs:
touch mhkit_webread_cache/test.txt
echo "Hello World" > mhkit_webread_cache/test.txt
- name: Setup MATLAB Library Path on Ubuntu
if: ${{ matrix.os == 'ubuntu-latest' }}
shell: bash -l {0}
run: |
echo "LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu:$LD_LIBRARY_PATH" >> "$GITHUB_ENV"
sudo apt-get update
sudo apt-get install -y libstdc++6
- name: Set up MATLAB
uses: matlab-actions/setup-matlab@v2
with:
Expand Down Expand Up @@ -265,9 +273,17 @@ jobs:
# if: ${{ matrix.os == 'ubuntu-latest' }}
# run: echo "export LD_LIBRARY_PATH=/usr/local/MATLAB/${{ matrix.matlab-version }}/sys/os/glnxa64" >> "$GITHUB_ENV"

- name: Setup MATLAB Path on Ubuntu
# - name: Setup MATLAB Path on Ubuntu
# if: ${{ matrix.os == 'ubuntu-latest' }}
# run: echo "LD_PRELOAD=/lib/x86_64-linux-gnu/libstdc++.so.6" >> "$GITHUB_ENV"

- name: Setup MATLAB Library Path on Ubuntu
if: ${{ matrix.os == 'ubuntu-latest' }}
run: echo "LD_PRELOAD=/lib/x86_64-linux-gnu/libstdc++.so.6" >> "$GITHUB_ENV"
shell: bash -l {0}
run: |
echo "LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu:$LD_LIBRARY_PATH" >> "$GITHUB_ENV"
sudo apt-get update
sudo apt-get install -y libstdc++6
- name: Print Python executable
shell: bash -l {0}
Expand Down

0 comments on commit ed1d86e

Please sign in to comment.