Skip to content

Commit

Permalink
WIP: Example for making files downloadable
Browse files Browse the repository at this point in the history
Signed-off-by: Andy Doan <[email protected]>
  • Loading branch information
doanac committed Nov 13, 2024
1 parent b9ed15b commit ee64a5e
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion .github/workflows/build-check-sdk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,27 @@ jobs:
-DPython3_NumPy_INCLUDE_DIR=${OECORE_TARGET_SYSROOT}/usr/lib/python3.10/site-packages/numpy/core/include \
-DPYTHON_SOABI=cpython-310-aarch64-linux-gnu -DCMAKE_STAGING_PREFIX=$(pwd)/install \
-DCMAKE_PREFIX_PATH=$(pwd)/install/share \
-DBUILD_TESTING=OFF
-DBUILD_TESTING=OFF
- name: Publish artifacts
run: |
build_dir=${PERSIST_DIR}/builds/${GITHUB_RUN_ID}
mkdir -p $build_dir
# TODO - copy files from the "Compile" step above
# For now just make some fake files
echo "This is persistent 1" > ${build_dir}/example1.txt
echo "This is persistent 2" > ${build_dir}/example2.txt
# Instruct our file server to make these files available for download
url="https://quic-qrt-ros-fileserver-1029608027416.us-central1.run.app/${GITHUB_RUN_ID}/"
retries=3
for ((i=0; i<retries; i++)); do
curl -X POST -v ${url} && break
echo "something went wrong, sleep and retry"
sleep 2
done
(( retries == i )) && { echo 'Failed to publish artifacts'; exit 1; }
echo Artifacts available at: ${url}

0 comments on commit ee64a5e

Please sign in to comment.