From f0406bb5ab62a2b5105c0bf80d392a1322b49aa5 Mon Sep 17 00:00:00 2001 From: Laurent Soucasse <135331272+lsoucasse@users.noreply.github.com> Date: Tue, 4 Jun 2024 09:30:47 +0200 Subject: [PATCH] Add required librairies to compile Socrates in the workflow. --- .github/workflows/tests.yaml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 4c7c5e2..b294183 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -23,6 +23,16 @@ jobs: repository: 'FormingWorlds/SOCRATES' path: 'SOCRATES' + - name: Setup system + run: | + sudo apt update + sudo apt-get install libnetcdff-dev netcdf-bin gfortran gcc + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + - name: Build SOCRATES run: | export LD_LIBRARY_PATH="" @@ -32,11 +42,6 @@ jobs: source set_rad_env cd .. - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 - with: - python-version: ${{ matrix.python-version }} - - name: Build JANUS run: | pip install -e .