added CI test for deb822

This commit is contained in:
Sampo Kivistö 2026-03-18 13:21:45 +02:00
parent fb6c5c0686
commit 75eaf46e42
No known key found for this signature in database
GPG key ID: 3B426F446F481CFF
2 changed files with 34 additions and 2 deletions

View file

@ -214,6 +214,38 @@ jobs:
chmod 700 "$GNUPGHOME"
gpg --batch --no-default-keyring --keyring dist/apt-ci/repo/gitcomet-archive-keyring.gpg --verify dist/apt-ci/repo/dists/stable/InRelease >/dev/null
- name: Verify generated repo with apt-secure
run: |
set -euo pipefail
repo_root="$(pwd)/dist/apt-ci/repo"
source_dir="${RUNNER_TEMP}/gitcomet-apt-sources.d"
lists_dir="${RUNNER_TEMP}/gitcomet-apt-lists"
mkdir -p "$source_dir"
sudo mkdir -p "${lists_dir}/partial"
cat > "${source_dir}/gitcomet-ci.sources" <<EOF
Types: deb
URIs: file://${repo_root}
Suites: stable
Components: main
Architectures: amd64
Signed-By: ${repo_root}/gitcomet-archive-keyring.gpg
EOF
sudo apt-get update \
-o Dir::Etc::sourcelist=/dev/null \
-o Dir::Etc::sourceparts="${source_dir}" \
-o Dir::State::lists="${lists_dir}" \
-o APT::Get::List-Cleanup=0
apt-cache policy gitcomet \
-o Dir::Etc::sourcelist=/dev/null \
-o Dir::Etc::sourceparts="${source_dir}" \
-o Dir::State::lists="${lists_dir}" \
| grep -q '0.0.0~ci1'
macos-packaging-smoke:
name: macOS packaging smoke (${{ matrix.arch }})
runs-on: ${{ matrix.runs_on }}

View file

@ -199,9 +199,10 @@ write_release_checksums() {
-printf '%P\n' \
| LC_ALL=C sort
)
echo ""
}
# `Release` is parsed as a single deb822 paragraph. Blank lines would split
# the checksum stanzas into separate paragraphs and make APT ignore them.
{
echo "Origin: ${origin}"
echo "Label: ${label}"
@ -211,7 +212,6 @@ write_release_checksums() {
echo "Architectures: ${architecture}"
echo "Components: ${component}"
echo "Description: ${description}"
echo ""
write_release_checksums "MD5Sum" md5sum
write_release_checksums "SHA256" sha256sum
write_release_checksums "SHA512" sha512sum