Skip to content

Commit c9c08d6

Browse files
authored
Fix Trixie, Focal, and Alma Linux 10 (#138)
1 parent 3bcce81 commit c9c08d6

1 file changed

Lines changed: 23 additions & 1 deletion

File tree

.github/workflows/pkg-rust.yml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,6 +528,28 @@ jobs:
528528
fi
529529
fi
530530
531+
# Exclude ubuntu:focal because the LXC image is no longer available.
532+
if [[ "${PACKAGE_TEST_RULES_PROCESSED_JSON}" != "{}" ]]; then
533+
CONTROL_JSON=$(echo ${PACKAGE_TEST_RULES_PROCESSED_JSON} | jq -c)
534+
MODIFIED_JSON=$(echo ${PACKAGE_TEST_RULES_PROCESSED_JSON} | jq -c 'del(.image[]? | select(. == "ubuntu:focal")) | del(.include[]? | select(.image == "ubuntu:focal"))')
535+
MODIFIED_JSON=$(echo ${MODIFIED_JSON} | jq -c 'del(.include[]? | select(.os == "ubuntu:focal"))')
536+
if [[ "${CONTROL_JSON}" != "${MODIFIED_JSON}" ]]; then
537+
echo "::warning::Removed ubuntu:focal image from package_test_rules because the LXC/Incus image no longer exists"
538+
PACKAGE_TEST_RULES_PROCESSED_JSON="${MODIFIED_JSON}"
539+
fi
540+
fi
541+
542+
# Exclude almalinux:10 because the LXC image is not yet available.
543+
if [[ "${PACKAGE_TEST_RULES_PROCESSED_JSON}" != "{}" ]]; then
544+
CONTROL_JSON=$(echo ${PACKAGE_TEST_RULES_PROCESSED_JSON} | jq -c)
545+
MODIFIED_JSON=$(echo ${PACKAGE_TEST_RULES_PROCESSED_JSON} | jq -c 'del(.image[]? | select(. == "almalinux:10")) | del(.include[]? | select(.image == "almalinux:10"))')
546+
MODIFIED_JSON=$(echo ${MODIFIED_JSON} | jq -c 'del(.include[]? | select(.os == "almalinux:10"))')
547+
if [[ "${CONTROL_JSON}" != "${MODIFIED_JSON}" ]]; then
548+
echo "::warning::Removed almalinux:10 image from package_test_rules because the LXC/Incus image no longer exists"
549+
PACKAGE_TEST_RULES_PROCESSED_JSON="${MODIFIED_JSON}"
550+
fi
551+
fi
552+
531553
# Exclude non-x86_64 targets as we only run the tests on x86-64 GitHub runners.
532554
if [[ "${PACKAGE_TEST_RULES_PROCESSED_JSON}" != "{}" ]]; then
533555
CONTROL_JSON=$(echo ${PACKAGE_TEST_RULES_PROCESSED_JSON} | jq -c)
@@ -1999,7 +2021,7 @@ jobs:
19992021
fi
20002022
sudo incus exec testcon -- sed -i -e "s/\${OS_NAME}/${OS_NAME}/g" -e "s/\${OS_REL}/${OS_REL}/g" /etc/apt/sources.list.d/ploutos.list
20012023
sudo incus exec testcon -- wget -q ${{ steps.verify.outputs.deb_apt_key_url }} -Oaptkey.asc
2002-
sudo incus exec testcon -- apt-key add ./aptkey.asc
2024+
sudo incus exec testcon -- gpg --dearmor -o /etc/apt/trusted.gpg.d/nlnetlabs-archive-keyring.gpg ./aptkey.asc
20032025
sudo incus exec testcon -- apt-get -y update
20042026
sudo incus exec testcon -- apt-get install -y ${{ steps.verify.outputs.published_pkg }}
20052027

0 commit comments

Comments
 (0)