Skip to content

Commit

Permalink
#76 Switch to runner user in portability workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
kwabenantim committed Feb 10, 2025
1 parent 2a404fc commit 3ded6f3
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions .github/workflows/image-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
image: "chaste/runner:${{ github.event.inputs.image_tag }}"
env:
RUNNER_OFF: 1
options: --user 0
options: --user runner

defaults:
run:
Expand All @@ -33,14 +33,11 @@ jobs:
steps:
- name: Checkout Chaste/${{ github.event.inputs.chaste_branch }}
run: |
su - runner
git clone --branch ${{ github.event.inputs.chaste_branch }} https://github.com/Chaste/Chaste
mkdir -p Chaste/build
- name: Create build env init script
run: |
su - runner
cat > init_build_env.sh << 'EOF'
module use /home/runner/modules/modulefiles
module load boost petsc_hdf5 sundials vtk xercesc xsd
Expand All @@ -51,37 +48,31 @@ jobs:
- name: Configure
run: |
su - runner
source init_build_env.sh
cmake -DCMAKE_BUILD_TYPE=Release ..
- name: TestChasteBuildInfo
run: |
su - runner
source init_build_env.sh
cmake --build . --target TestChasteBuildInfo --parallel $(nproc)
ctest -V -R TestChasteBuildInfo --output-on-failure
- name: Build Continuous test pack
run: |
su - runner
source init_build_env.sh
cmake --build . --target Continuous --parallel $(nproc)
- name: Build Nightly test pack
run: |
su - runner
source init_build_env.sh
cmake --build . --target Nightly --parallel $(nproc)
- name: Run Continuous test pack
run: |
su - runner
source init_build_env.sh
ctest -j $(nproc) -L Continuous --output-on-failure
- name: Run Nightly test pack
run: |
su - runner
source init_build_env.sh
ctest -j $(nproc) -L Nightly --output-on-failure

0 comments on commit 3ded6f3

Please sign in to comment.