Skip to content

CHG: do not preload petsc files if petsc is not installed #42

CHG: do not preload petsc files if petsc is not installed

CHG: do not preload petsc files if petsc is not installed #42

Workflow file for this run

name: Compilation CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
ISSM_DIR: ${{ github.workspace }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- run: echo "The job was automatically triggered by a ${{ github.event_name }} event."
- run: echo "This job is now running on a ${{ runner.os }} server hosted by GitHub!"
- run: echo "The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
- name: Installing MATLAB
id: setup-matlab
uses: matlab-actions/setup-matlab@v2
with:
release: R2023b
- name: Install Open MPI
run: |
sudo apt-get install -y libopenmpi-dev
echo "Here is what's in include"
ls /usr/lib/x86_64-linux-gnu/openmpi/include/
echo "Here is mpicc -show"
mpicc -show
- name: Install METIS
run: sudo apt-get install -y libmetis-dev
- name: Install PETSc
run: sudo apt-get install -y petsc-dev
- name: Check out repository code
uses: actions/checkout@v4
- name: Install and Compile ISSM
env:
MATLAB_PATH: ${{ steps.setup-matlab.outputs.matlabroot }}
run: |
cd .github/ci_scripts
./ci_ISSM.sh github_linux_basic
- name: Get run-matlab-command
run: |
wget -O /usr/local/bin/run-matlab-command https://ssd.mathworks.com/supportfiles/ci/run-matlab-command/v2/glnxa64/run-matlab-command
chmod +x /usr/local/bin/run-matlab-command
- name: Run MATLAB Command
run: |
source $ISSM_DIR/etc/environment.sh
LD_PRELOAD=/lib/x86_64-linux-gnu/libstdc++.so.6 run-matlab-command "matlab_ci"
#LD_PRELOAD=/lib/x86_64-linux-gnu/libstdc++.so.6:$ISSM_DIR/externalpackages/petsc/install/lib/libmpi.so:$ISSM_DIR/externalpackages/petsc/install/lib/libmpifort.so run-matlab-command "matlab_ci"
- run: echo "This job's status is ${{ job.status }}."