@@ -13,19 +13,36 @@ jobs:
13
13
with :
14
14
path : pr
15
15
16
- - name : Set up & Build Images
16
+ - name : Build & Store Images
17
17
run : |
18
18
sudo apt-get update
19
19
sudo apt-get install -y software-properties-common openssh-client
20
20
sudo add-apt-repository -y ppa:apptainer/ppa
21
21
sudo apt-get install -y apptainer
22
22
sudo apptainer config fakeroot --enable $(whoami)
23
+
24
+ mkdir -p ~/.ssh
25
+ echo "${{secrets.SSH_PRIVATE_KEY}}" >~/.ssh/id_rsa
26
+ chmod 600 ~/.ssh/id_rsa
27
+ ssh-keyscan -H ap40.uw.osg-htc.org >> ~/.ssh/known_hosts
28
+
23
29
(cd pr/.github/workflows/images && sudo apptainer build mfc_cpu.sif Singularity.cpu)
30
+ scp pr/.github/workflows/images/mfc_cpu.sif ${{secrets.SSH_USER}}:MFC/mfc_cpu.sif
31
+ rm -rf pr/.github/workflows/images/mfc_cpu.sif
32
+
24
33
(cd pr/.github/workflows/images && sudo apptainer build mfc_cpu_bench.sif Singularity.cpu_bench)
34
+ scp pr/.github/workflows/images/mfc_cpu_bench.sif ${{secrets.SSH_USER}}:MFC/mfc_cpu_bench.sif
35
+ rm -rf pr/.github/workflows/images/mfc_cpu_bench.sif
36
+
25
37
(cd pr/.github/workflows/images && sudo apptainer build mfc_gpu.sif Singularity.gpu)
38
+ scp pr/.github/workflows/images/mfc_gpu.sif ${{secrets.SSH_USER}}:MFC/mfc_gpu.sif
39
+ rm -rf pr/.github/workflows/images/mfc_gpu.sif
40
+
26
41
(cd pr/.github/workflows/images && sudo apptainer build mfc_gpu_bench.sif Singularity.gpu_bench)
42
+ scp pr/.github/workflows/images/mfc_gpu_bench.sif ${{secrets.SSH_USER}}:MFC/mfc_gpu_bench.sif
43
+ rm -rf pr/.github/workflows/images/mfc_gpu_bench.sif
27
44
28
- - name : Test and Store Images
45
+ - name : Test Images
29
46
run : |
30
47
mkdir -p ~/.ssh
31
48
echo "${{secrets.SSH_PRIVATE_KEY}}" >~/.ssh/id_rsa
0 commit comments