File tree Expand file tree Collapse file tree 1 file changed +20
-4
lines changed Expand file tree Collapse file tree 1 file changed +20
-4
lines changed Original file line number Diff line number Diff line change @@ -13,13 +13,29 @@ jobs:
13
13
with :
14
14
path : pr
15
15
16
- - name : Test and Store Images on Shared Resource
16
+ - name : Set up Singularity Images
17
+ run : |
18
+ sudo apt-get update
19
+ sudo apt-get install -y software-properties-common apptainer openssh-client
20
+ sudo add-apt-repository -y ppa:apptainer/ppa
21
+ sudo apptainer config fakeroot --enable $(whoami)
22
+ (cd pr/.github/workflows/images && sudo apptainer build mfc_cpu.sif Singularity.cpu)
23
+
24
+ - name : Test and Store Images
17
25
run : |
18
26
mkdir -p ~/.ssh
19
27
echo "${{secrets.SSH_PRIVATE_KEY}}" >~/.ssh/id_rsa
20
28
chmod 6000 ~/.ssh/id_rsa
21
29
ssh-keyscan -H ap40.uw.osg-htc.org >> ~/.ssh/known_hosts
22
30
scp pr/.github/workflows/images/mfc_cpu.sif ${{secrets.SSH_USER}}:MFC/mfc_cpu.sif
23
- # ssh ${{secrets.SSH_USER}} "
24
- # apptainer run --fakeroot MFC/mfc_cpu.sif test -a --no-build --no-mpi
25
- # "
31
+ ssh ${{secrets.SSH_USER}} "
32
+ apptainer run --fakeroot MFC/mfc_cpu.sif test -a --no-build --no-mpi
33
+ "
34
+
35
+ - name : Upload images as artifacts
36
+ uses : actions/upload-artifact@v4
37
+ if : always()
38
+ with :
39
+ name : singularity-images
40
+ path : |
41
+ pr/.github/workflows/images/*
You can’t perform that action at this time.
0 commit comments