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