sci/scripts/build.sh

21 lines
421 B
Bash
Raw Normal View History

2024-08-06 20:35:00 +02:00
#!/bin/sh
set -e # exit immediately on error
git clone -b dev "$SCI_PIPELINE_URL" "$SCI_PIPELINE_NAME"
echo "clone success"
cd "$SCI_PIPELINE_NAME"
cmake -B build
echo "configure success"
cmake --build build
echo "build success"
cpack build
echo "packaging success"
# TODO: upload artifacts to some artifact store
# curl "build/dist/your-package.deb" > ftp://example.com/artifacts
# echo "artifacts upload success"