Skip to content

Commit

Permalink
Added: add publish artifacts in build workflow
Browse files Browse the repository at this point in the history
Add steps to copy build artifacts to shared directory for
downloading.

Signed-off-by: Jiaxing Shi <[email protected]>
  • Loading branch information
jiaxshi committed Nov 22, 2024
1 parent a1d14e0 commit ff1b274
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion .github/workflows/build-check-sdk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,22 @@ 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
tar -cvf ${build_dir}/artifacts.tar ${WORKSPACE}/install ${WORKSPACE}/build ${WORKSPACE}/log
# 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 ff1b274

Please sign in to comment.