New upstream release 25.3.2.9 #92
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test Ubuntu 20.04 | |
on: | |
push: | |
jobs: | |
test-ubuntu-20: | |
container: | |
image: ubuntu:20.04 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install Git | |
run: | | |
apt-get update | |
apt-get install -y --no-install-recommends \ | |
ca-certificates \ | |
git | |
- name: Checkout | |
uses: actions/checkout@v3.5.3 | |
with: | |
path: package-sources | |
- name: Checkout otp | |
uses: actions/checkout@v3.5.3 | |
with: | |
repository: erlang/otp | |
ref: maint-25 | |
fetch-depth: 0 | |
path: erlang-sources | |
- name: Build package | |
run: | | |
set -x | |
if test -f /etc/debian_version; then | |
dist_version=debian-$(cat /etc/debian_version) | |
fi | |
export DEBIAN_FRONTEND=noninteractive | |
apt-get install -y tzdata | |
echo "Europe/London" > /etc/timezone | |
dpkg-reconfigure -f noninteractive tzdata | |
apt-get install -y --no-install-recommends \ | |
build-essential \ | |
devscripts \ | |
equivs \ | |
gnupg \ | |
rsync | |
apt-get install -y --no-install-recommends git-buildpackage | |
cd erlang-sources | |
cp -a ../package-sources/debian . | |
branch=erlang-debian-package-by-rabbitmq | |
version=$(git describe --tags --abbrev=10) | |
case "$version" in | |
OTP-*) | |
version=$(echo "$version" | \ | |
sed -E \ | |
-e 's/^OTP-//' \ | |
-e 's/-/~/' \ | |
-e 's/-/./') | |
;; | |
OTP_*) | |
version=$(echo "$version" | \ | |
sed -E \ | |
-e 's/OTP_R([1-9]+)B0*([1-9]+)($|-([0-9]+))/\1.b.\2\3/' \ | |
-e 's/-/./') | |
;; | |
*) | |
exit 1 | |
;; | |
esac | |
if test "$(git rev-parse HEAD)" = "$(git rev-parse master)"; then | |
# If we are on the `master` branch of Erlang, the last tag doesn't | |
# match the future version of Erlang. Let's construct the version from | |
# the `OTP_VERSION` file. | |
future_version=$(cat OTP_VERSION) | |
future_version=${future_version%-*} | |
version=$(echo "$version" | sed -E 's/([^~]+)/'"$future_version"'/') | |
fi | |
tag=upstream-tag-for-debian-package | |
git rev-parse "$tag" -- >/dev/null 2>&1 || git tag "$tag" | |
git checkout -b "$branch" | |
# Remove non-free documentation. | |
for fn in $(find lib/*/doc -name standard -or -name archive); do | |
rm -rf "$fn" | |
done | |
# -------------------------------------------------------------------- | |
# Configure git-buildpackage. | |
# -------------------------------------------------------------------- | |
cat > ~/.gbp.conf <<EOF | |
[DEFAULT] | |
upstream-tag = $tag | |
EOF | |
# -------------------------------------------------------------------- | |
# Build package. | |
# -------------------------------------------------------------------- | |
mk-build-deps -i \ | |
-t 'apt-get -o Debug::pkgProblemResolver=yes --no-install-recommends -y' | |
rm -f erlang-build-deps* | |
gbp buildpackage \ | |
--git-ignore-new \ | |
--git-debian-branch="$branch" \ | |
--no-sign |