File tree Expand file tree Collapse file tree 1 file changed +24
-1
lines changed Expand file tree Collapse file tree 1 file changed +24
-1
lines changed Original file line number Diff line number Diff line change 68
68
-DPython3_NumPy_INCLUDE_DIR=${OECORE_TARGET_SYSROOT}/usr/lib/python3.10/site-packages/numpy/core/include \
69
69
-DPYTHON_SOABI=cpython-310-aarch64-linux-gnu -DCMAKE_STAGING_PREFIX=$(pwd)/install \
70
70
-DCMAKE_PREFIX_PATH=$(pwd)/install/share \
71
- -DBUILD_TESTING=OFF
71
+ -DBUILD_TESTING=OFF
72
+
73
+ - name : Publish artifacts
74
+ run : |
75
+ build_dir=${PERSIST_DIR}/builds/${GITHUB_RUN_ID}
76
+ mkdir -p $build_dir
77
+
78
+ # TODO - copy files from the "Compile" step above
79
+ # For now just make some fake files
80
+ echo "This is persistent 1" > ${build_dir}/example1.txt
81
+ echo "This is persistent 2" > ${build_dir}/example2.txt
82
+
83
+ # Instruct our file server to make these files available for download
84
+ url="https://quic-qrt-ros-gh-runners-1029608027416.us-central1.run.app/${GITHUB_RUN_ID}/"
85
+
86
+ retries=3
87
+ for ((i=0; i<retries; i++)); do
88
+ curl -X POST -v ${url} && break
89
+ echo "something went wrong, sleep and retry"
90
+ sleep 2
91
+ done
92
+ (( retries == i )) && { echo 'Failed to publish artifacts'; exit 1; }
93
+
94
+ echo Artifacts available at: ${url}
You can’t perform that action at this time.
0 commit comments