From 81ae61949fbf10c3bf8acc5e9f724a800ce77ff0 Mon Sep 17 00:00:00 2001 From: Kwabena N Amponsah Date: Wed, 5 Feb 2025 13:51:58 +0000 Subject: [PATCH] #76 Update build workflows --- .github/workflows/build-all.yml | 2 +- .github/workflows/image-tests.yml | 22 +++++++--------------- 2 files changed, 8 insertions(+), 16 deletions(-) diff --git a/.github/workflows/build-all.yml b/.github/workflows/build-all.yml index 59ec703..20e76e2 100644 --- a/.github/workflows/build-all.yml +++ b/.github/workflows/build-all.yml @@ -5,7 +5,7 @@ on: jobs: setup: - name: build all modules and compile chaste build info + name: build all dependencies strategy: fail-fast: false diff --git a/.github/workflows/image-tests.yml b/.github/workflows/image-tests.yml index 0350f57..99a5331 100644 --- a/.github/workflows/image-tests.yml +++ b/.github/workflows/image-tests.yml @@ -54,15 +54,12 @@ jobs: - name: create module init script run: | - echo "source /etc/profile.d/modules.sh" > init.sh - echo "module use /home/runner/modules/modulefiles" >> init.sh - echo "module purge" >> init.sh - echo "module load boost" >> init.sh - echo "module load petsc_hdf5" >> init.sh - echo "module load sundials" >> init.sh - echo "module load vtk" >> init.sh - echo "module load xercesc" >> init.sh - echo "module load xsd" >> init.sh + cat > init.sh<< EOF + source /etc/profile.d/modules.sh + module use /home/runner/modules/modulefiles + module purge + module load boost petsc_hdf5 sundials vtk xercesc xsd + EOF working-directory: chaste-build-dir - name: set runner user privileges @@ -71,12 +68,7 @@ jobs: - name: cmake configure run: | source init.sh - su -m runner -c "cmake \ - -DBoost_NO_BOOST_CMAKE=${Boost_NO_BOOST_CMAKE} \ - -DBoost_NO_SYSTEM_PATHS=${Boost_NO_SYSTEM_PATHS} \ - -DBOOST_ROOT=${BOOST_ROOT} \ - -DCMAKE_BUILD_TYPE=Release \ - ../Chaste" + su -m runner -c "cmake -DCMAKE_BUILD_TYPE=Release ../Chaste" working-directory: chaste-build-dir - name: compile build info