Skip to content

Commit 8197f8f

Browse files
authored
Exclude Xenial from building. (#128)
Fixes #127.
1 parent 2288e8b commit 8197f8f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/pkg-rust.yml

+11
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,17 @@ jobs:
399399
fi
400400
fi
401401
402+
# Exclude ubuntu:xenial as its GLIBC is too old to support Node 20 now required to use GitHub Actions
403+
if [[ "${PACKAGE_BUILD_RULES_PROCESSED_JSON}" != "{}" ]]; then
404+
CONTROL_JSON=$(echo ${PACKAGE_BUILD_RULES_PROCESSED_JSON} | jq -c)
405+
MODIFIED_JSON=$(echo ${PACKAGE_BUILD_RULES_PROCESSED_JSON} | jq -c 'del(.image[]? | select(. == "ubuntu:xenial")) | del(.include[]? | select(.image == "ubuntu:xenial"))')
406+
MODIFIED_JSON=$(echo ${MODIFIED_JSON} | jq -c 'del(.include[]? | select(.os == "ubuntu:xenial"))')
407+
if [[ "${CONTROL_JSON}" != "${MODIFIED_JSON}" ]]; then
408+
echo "::warning::Removed ubuntu:xenial image from package_build_rules because its GLIBC is too old to support Node 20 required by GitHub Actions"
409+
PACKAGE_BUILD_RULES_PROCESSED_JSON="${MODIFIED_JSON}"
410+
fi
411+
fi
412+
402413
# Exclude ubuntu:bionic as its GLIBC is too old to support Node 20 now required to use GitHub Actions
403414
if [[ "${PACKAGE_BUILD_RULES_PROCESSED_JSON}" != "{}" ]]; then
404415
CONTROL_JSON=$(echo ${PACKAGE_BUILD_RULES_PROCESSED_JSON} | jq -c)

0 commit comments

Comments
 (0)