Skip to content

Commit dcb169b

Browse files
author
mohdsaid497566
committed
updating workflow file
1 parent 007f351 commit dcb169b

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/container-image.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ jobs:
2121
sudo apt-get install -y apptainer
2222
sudo apptainer config fakeroot --enable $(whoami)
2323
(cd pr/.github/workflows/images && sudo apptainer build mfc_cpu.sif Singularity.cpu)
24+
(cd pr/.github/workflows/images && sudo apptainer build mfc_cpu_bench.sif Singularity.cpu_bench)
25+
(cd pr/.github/workflows/images && sudo apptainer build mfc_gpu.sif Singularity.gpu)
26+
(cd pr/.github/workflows/images && sudo apptainer build mfc_gpu_bench.sif Singularity.gpu_bench)
2427
2528
- name: Test and Store Images
2629
run: |
@@ -29,10 +32,12 @@ jobs:
2932
chmod 600 ~/.ssh/id_rsa
3033
ssh-keyscan -H ap40.uw.osg-htc.org >> ~/.ssh/known_hosts
3134
scp pr/.github/workflows/images/mfc_cpu.sif ${{secrets.SSH_USER}}:MFC/mfc_cpu.sif
32-
ssh ${{secrets.SSH_USER}} "
33-
apptainer run --fakeroot MFC/mfc_cpu.sif test -a --no-build --no-mpi
35+
ssh ${{secrets.SSH_USER}} ""
36+
apptainer exec --fakeroot --writable-tmpfs mfc_cpu.sif /bin/bash -c 'cd /opt/MFC && ./mfc.sh test -a'
37+
apptainer exec --fakeroot --writable-tmpfs mfc_cpu_bench.sif /bin/bash -c 'cd /opt/MFC && ./mfc.sh test -a'
38+
apptainer exec --fakeroot --writable-tmpfs mfc_gpu.sif /bin/bash -c 'cd /opt/MFC && ./mfc.sh test -a'
39+
apptainer exec --fakeroot --writable-tmpfs mfc_gpu_bench.sif /bin/bash -c 'cd /opt/MFC && ./mfc.sh test -a'
3440
"
35-
3641
- name: Upload images as artifacts
3742
uses: actions/upload-artifact@v4
3843
if: always()

0 commit comments

Comments
 (0)