From d5bb85938a28be816f3ec7ead1f01a4c88397650 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 19 Aug 2024 10:55:07 +0200 Subject: unify debian packaging logic --- contrib/ci/debian-package-job.sh | 23 +++++ contrib/ci/jobs/000-codespell/job.sh | 107 +-------------------- contrib/ci/jobs/002-test/job.sh | 6 +- contrib/ci/jobs/003-docs/job.sh | 6 +- .../100-build-debian-bookworm-amd64-gen/job.sh | 6 +- .../job.sh | 23 ----- .../version.sh | 17 ---- .../102-upload-debian-bookworm-amd64-gen/job.sh | 18 +--- .../105-build-debian-bookworm-arm64-gen/job.sh | 6 +- .../job.sh | 23 +---- .../version.sh | 17 ---- .../107-upload-debian-bookworm-arm64-gen/job.sh | 18 +--- .../jobs/110-build-debian-trixie-amd64-gen/job.sh | 6 +- .../111-deb-package-debian-trixie-amd64-gen/job.sh | 23 +---- .../version.sh | 17 ---- .../jobs/112-upload-debian-trixie-amd64-gen/job.sh | 18 +--- .../jobs/115-build-debian-trixie-arm64-gen/job.sh | 6 +- .../116-deb-package-debian-trixie-arm64-gen/job.sh | 23 +---- .../version.sh | 17 ---- .../jobs/117-upload-debian-trixie-arm64-gen/job.sh | 18 +--- .../120-build-debian-unstable-amd64-gen/job.sh | 6 +- .../job.sh | 23 +---- .../version.sh | 17 ---- .../122-upload-debian-unstable-amd64-gen/job.sh | 18 +--- .../125-build-debian-unstable-arm64-gen/job.sh | 6 +- .../job.sh | 23 +---- .../version.sh | 17 ---- .../127-upload-debian-unstable-arm64-gen/job.sh | 18 +--- contrib/ci/targets/debian/build/job.sh | 6 +- contrib/ci/version.sh | 20 ++++ 30 files changed, 64 insertions(+), 488 deletions(-) create mode 100755 contrib/ci/debian-package-job.sh delete mode 100755 contrib/ci/jobs/101-deb-package-debian-bookworm-amd64-gen/job.sh delete mode 100755 contrib/ci/jobs/101-deb-package-debian-bookworm-amd64-gen/version.sh delete mode 100755 contrib/ci/jobs/106-deb-package-debian-bookworm-arm64-gen/version.sh delete mode 100755 contrib/ci/jobs/111-deb-package-debian-trixie-amd64-gen/version.sh delete mode 100755 contrib/ci/jobs/116-deb-package-debian-trixie-arm64-gen/version.sh delete mode 100755 contrib/ci/jobs/121-deb-package-debian-unstable-amd64-gen/version.sh delete mode 100755 contrib/ci/jobs/126-deb-package-debian-unstable-arm64-gen/version.sh create mode 100755 contrib/ci/version.sh (limited to 'contrib') diff --git a/contrib/ci/debian-package-job.sh b/contrib/ci/debian-package-job.sh new file mode 100755 index 000000000..afeeff3ce --- /dev/null +++ b/contrib/ci/debian-package-job.sh @@ -0,0 +1,23 @@ +#!/bin/bash +set -exuo pipefail +# This file is in the public domain. +# Helper script to build the latest DEB packages in the container. +# Shared between various jobs. + +unset LD_LIBRARY_PATH + +# Install build-time dependencies. +# Update apt cache first +apt-get update +apt-get upgrade -y +mk-build-deps --install --tool='apt-get -o Debug::pkgProblemResolver=yes --no-install-recommends --yes' debian/control + +export VERSION="$(./contrib/ci/version.sh)" +echo "Building package version ${VERSION}" +EMAIL=none gbp dch --dch-opt=-b --ignore-branch --debian-tag="%(version)s" --git-author --new-version="${VERSION}" +./bootstrap +dpkg-buildpackage -rfakeroot -b -uc -us + +ls -alh ../*.deb +mkdir -p /artifacts/exchange/${CI_COMMIT_REF} # Variable comes from CI environment +mv ../*.deb /artifacts/exchange/${CI_COMMIT_REF}/ diff --git a/contrib/ci/jobs/000-codespell/job.sh b/contrib/ci/jobs/000-codespell/job.sh index 5b73aabf3..3270feb65 100755 --- a/contrib/ci/jobs/000-codespell/job.sh +++ b/contrib/ci/jobs/000-codespell/job.sh @@ -1,107 +1,2 @@ #!/bin/bash -set -exuo pipefail - -job_dir=$(dirname "${BASH_SOURCE[0]}") - -skip=$(cat < Date: Mon, 19 Aug 2024 11:48:41 +0200 Subject: -restore SPA version --- contrib/wallet-core | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'contrib') diff --git a/contrib/wallet-core b/contrib/wallet-core index 5934e007f..8b667974a 160000 --- a/contrib/wallet-core +++ b/contrib/wallet-core @@ -1 +1 @@ -Subproject commit 5934e007f637bd9834a811e67c0a030d7a59f2c0 +Subproject commit 8b667974a7c55fe542be8a58b0a9f20e3d62d770 -- cgit v1.2.3 From 78d8f5f338c22e11c1d94b484657c86adbed879b Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 19 Aug 2024 18:43:17 +0200 Subject: add code to call insert_pending_deposit --- contrib/wallet-core | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'contrib') diff --git a/contrib/wallet-core b/contrib/wallet-core index 8b667974a..5934e007f 160000 --- a/contrib/wallet-core +++ b/contrib/wallet-core @@ -1 +1 @@ -Subproject commit 8b667974a7c55fe542be8a58b0a9f20e3d62d770 +Subproject commit 5934e007f637bd9834a811e67c0a030d7a59f2c0 -- cgit v1.2.3 From 9d342609388b2493d234429b5c80084a0a1df471 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Mon, 19 Aug 2024 18:55:51 +0200 Subject: revert rollback of submodules --- contrib/wallet-core | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'contrib') diff --git a/contrib/wallet-core b/contrib/wallet-core index 5934e007f..4c59144f6 160000 --- a/contrib/wallet-core +++ b/contrib/wallet-core @@ -1 +1 @@ -Subproject commit 5934e007f637bd9834a811e67c0a030d7a59f2c0 +Subproject commit 4c59144f6e2a9b5748de42fa108a3a164cacc4ee -- cgit v1.2.3 From bab295db4adc83411e854269d80f097c784e6cc0 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 19 Aug 2024 22:35:53 +0200 Subject: cleanup --- contrib/wallet-core | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'contrib') diff --git a/contrib/wallet-core b/contrib/wallet-core index 4c59144f6..5934e007f 160000 --- a/contrib/wallet-core +++ b/contrib/wallet-core @@ -1 +1 @@ -Subproject commit 4c59144f6e2a9b5748de42fa108a3a164cacc4ee +Subproject commit 5934e007f637bd9834a811e67c0a030d7a59f2c0 -- cgit v1.2.3