Skip to content

Commit

Permalink
#76 Update build workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
kwabenantim committed Feb 5, 2025
1 parent ec5cd0d commit 81ae619
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:

jobs:
setup:
name: build all modules and compile chaste build info
name: build all dependencies

strategy:
fail-fast: false
Expand Down
22 changes: 7 additions & 15 deletions .github/workflows/image-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 81ae619

Please sign in to comment.