2021-06-26 08:45:21 +07:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
set -eu
|
|
|
|
|
|
|
|
for DEB_PACKAGE in amd64 armhf arm64; do
|
|
|
|
cat << EOF
|
|
|
|
- label: ":debian: Build Package [${DEB_PACKAGE}]"
|
|
|
|
command: "debhelper.sh"
|
|
|
|
artifact_paths:
|
|
|
|
- "*.deb"
|
|
|
|
- "*.deb.sha256"
|
|
|
|
env:
|
|
|
|
PACKAGE: "${DEB_PACKAGE}"
|
|
|
|
EOF
|
|
|
|
if [[ "${DEB_PACKAGE}" == "amd64" ]]; then
|
|
|
|
cat << EOF
|
|
|
|
ARCH: "${DEB_PACKAGE}"
|
|
|
|
EOF
|
|
|
|
elif [[ "${DEB_PACKAGE}" == "armhf" ]]; then
|
|
|
|
cat << EOF
|
2021-09-16 19:39:18 +07:00
|
|
|
ARCH: "arm"
|
2021-06-26 08:45:21 +07:00
|
|
|
EOF
|
|
|
|
else
|
|
|
|
cat << EOF
|
2021-09-16 19:39:18 +07:00
|
|
|
ARCH: "arm64"
|
2021-06-26 08:45:21 +07:00
|
|
|
EOF
|
|
|
|
fi
|
|
|
|
cat << EOF
|
2021-09-16 19:39:18 +07:00
|
|
|
depends_on:
|
|
|
|
- "unit-test"
|
2021-06-26 08:45:21 +07:00
|
|
|
key: "build-deb-package-${DEB_PACKAGE}"
|
|
|
|
EOF
|
|
|
|
done
|