Cirrus: more build improvements.

Name artifact directories with the architecture type.
This commit is contained in:
John MacFarlane
2023-03-12 17:09:17 -07:00
parent 3626724817
commit e6d4af1a67
3 changed files with 39 additions and 14 deletions
+1 -9
View File
@@ -17,18 +17,10 @@ case "$MACHINE" in
*) ARCHITECTURE=unknown;;
esac
ARTIFACTS="$WORK/linux/artifacts"
ARTIFACTS="$WORK/linux-${ARCHITECTURE}"
echo "Creating $ARTIFACTS directory"
mkdir -p $ARTIFACTS
# This is our sentinel that tells us when we're done.
rm -f $ARTIFACTS/DONE
clean_up() {
echo "Exiting with error..."
}
trap clean_up EXIT
echo "Copying and stripping pandoc binary"
cp "$BINPATH" "$ARTIFACTS/pandoc"
strip "$ARTIFACTS/pandoc"