File tree Expand file tree Collapse file tree 5 files changed +15
-7
lines changed Expand file tree Collapse file tree 5 files changed +15
-7
lines changed Original file line number Diff line number Diff line change 1
1
README.html
2
- 30.tar.gz
2
+ argosy-artifact.zip
Original file line number Diff line number Diff line change 6
6
7
7
echo " The artifact provides an option of using a VM argosy-vm.ova for dependencies; its md5 is also below."
8
8
echo ' ```'
9
- md5sum 30.tar.gz
9
+ md5sum argosy-artifact.zip
10
10
cd vm/argosy-vm-ova
11
11
md5sum argosy-vm.ova
12
12
echo ' ```'
Original file line number Diff line number Diff line change 4
4
5
5
src=" $1 "
6
6
out=" /tmp/argosy-artifact"
7
+ out_dir=" $PWD "
7
8
8
9
if [ -z " $src " ]; then
9
10
echo " Usage: $0 <path to argosy src>"
@@ -22,9 +23,16 @@ pushd "$out"
22
23
tar -xf argosy.tar.gz
23
24
rm argosy.tar.gz
24
25
26
+ # package up the rest of the artifact
25
27
cp " $src /artifact/README.html" ./
26
28
cp " $src /artifact/loc.sh" ./
27
29
popd
28
30
find " $out " -type f -name ' ._*' -delete
29
- tar -czvf " 30.tar.gz" -C $( dirname " $out " ) $( basename " $out " )
31
+
32
+ # Note that the uploaded artifact needs to be a zip file because HotCRP
33
+ # doesn't preserve the tar part of the filename for compressed tarballs.
34
+ pushd " $out /.."
35
+ rm -f " $out_dir /argosy-artifact.zip"
36
+ zip -r " $out_dir /argosy-artifact.zip" $( basename " $out " )
37
+ popd
30
38
rm -r " $out "
Original file line number Diff line number Diff line change 4
4
5
5
# # install dependencies
6
6
# artifact dependencies
7
- sudo apt-get install -y opam cloc sqlite3
7
+ sudo apt-get install -y opam cloc sqlite3 zip
8
8
# conveniences for VM
9
9
sudo apt-get install -y virtualbox-guest-dkms virtualbox-guest-utils virtualbox-guest-utils vim firefox
10
10
@@ -21,11 +21,11 @@ opam install -j2 -y coq.8.9.0
21
21
# # set up artifact
22
22
# we do a build first to set up the stack cache
23
23
cd /tmp
24
- tar -xf /tmp/argosy-artifact.tar.gz
24
+ unzip /tmp/argosy-artifact.zip
25
25
cd /tmp/argosy-artifact/argosy
26
26
make -j2
27
27
cd logging-client
28
28
stack test
29
29
30
30
cd ~ /
31
- tar -xf /tmp/argosy-artifact.tar.gz
31
+ unzip /tmp/argosy-artifact.zip
Original file line number Diff line number Diff line change 78
78
},
79
79
{
80
80
"type" : " file" ,
81
- "source" : " ../30.tar.gz " ,
81
+ "source" : " ../argosy-artifact.tgz " ,
82
82
"destination" : " /tmp/argosy-artifact.tar.gz"
83
83
},
84
84
{
You can’t perform that action at this time.
0 commit comments