File tree Expand file tree Collapse file tree 1 file changed +26
-1
lines changed Expand file tree Collapse file tree 1 file changed +26
-1
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,9 @@ name: Compile test
3
3
on :
4
4
workflow_dispatch :
5
5
6
+ env :
7
+ persist_dir : /srv/gh-runners/quic-qrb-ros
8
+
6
9
jobs :
7
10
build-pr :
8
11
strategy :
27
30
# echo "Downloading sdk"
28
31
# .....
29
32
# fi
30
- persist_dir=/srv/gh-runners/quic-qrb-ros
31
33
32
34
# quic-yocto uses Kas to build with:
33
35
# export DL_DIR=${persist_dir}/downloads
37
39
# mkdir build
38
40
# cd build
39
41
# kas build ../ci/${{ matrix.machine }}.yml
42
+ #
43
+ - name : Publish artifacts
44
+ run : |
45
+ build_dir=${persist_dir}/builds/${GITHUB_RUN_ID}
46
+ mkdir -p $build_dir
47
+
48
+ # TODO - copy files from the "Compile" step above
49
+ # For now just make some fake files
50
+ echo "This is persistent 1" > ${build_dir}/example1.txt
51
+ echo "This is persistent 2" > ${build_dir}/example2.txt
52
+
53
+ # Instruct our file server to make these files available for download
54
+ url="https://quic-qrt-ros-gh-runners-1029608027416.us-central1.run.app/${GITHUB_RUN_ID}/${{ matrix.machine }}/"
55
+
56
+ retries=3
57
+ for ((i=0; i<retries; i++)); do
58
+ curl -X POST -v ${url} && break
59
+ echo "something went wrong, sleep and retry"
60
+ sleep 2
61
+ done
62
+ (( retries == i )) && { echo 'Failed to publish artifacts'; exit 1; }
63
+
64
+ echo Artifacts available at: ${url}
You can’t perform that action at this time.
0 commit comments