feat: add arch packaging

This commit is contained in:
2024-08-06 20:35:00 +02:00
parent 5469fdcf92
commit ccd07141f5
11 changed files with 301 additions and 63 deletions

20
scripts/build.sh Normal file
View File

@ -0,0 +1,20 @@
#!/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"