diff --git a/.github/workflows/test_set_1.yml b/.github/workflows/test_set_1.yml index 882a840..3a367ca 100644 --- a/.github/workflows/test_set_1.yml +++ b/.github/workflows/test_set_1.yml @@ -17,7 +17,7 @@ jobs: if: github.repository_owner == 'hwdsl2' strategy: matrix: - os_version: ["centos:8s", "centos:7", "rockylinux:9", "rockylinux:8", "almalinux:9", "almalinux:8", "amazonlinux:2", "oraclelinux:9", "oraclelinux:8", "oraclelinux:7"] + os_version: ["centos:9s", "centos:8s", "centos:7", "rockylinux:9", "rockylinux:8", "almalinux:9", "almalinux:8", "amazonlinux:2", "oraclelinux:9", "oraclelinux:8", "oraclelinux:7"] fail-fast: false env: OS_VERSION: ${{ matrix.os_version }} @@ -535,7 +535,9 @@ jobs: exit 0 EOF - if [ "$OS_VERSION" = "centos:8s" ]; then + if [ "$OS_VERSION" = "centos:9s" ]; then + echo "FROM quay.io/centos/centos:stream9" > Dockerfile + elif [ "$OS_VERSION" = "centos:8s" ]; then echo "FROM quay.io/centos/centos:stream8" > Dockerfile else echo "FROM $OS_VERSION" > Dockerfile @@ -547,6 +549,13 @@ jobs: WORKDIR /opt/src RUN if command -v amazon-linux-extras; then amazon-linux-extras install -y kernel-ng; fi + EOF + + if [ "$OS_VERSION" = "centos:9s" ]; then + echo "RUN yum -y -q install systemd" >> Dockerfile + fi + + cat >> Dockerfile <<'EOF' RUN (cd /lib/systemd/system/sysinit.target.wants/; for i in *; do [ "$i" = \ systemd-tmpfiles-setup.service ] || rm -f "$i"; done); \