From e2610a3fc10c69b33b323934071d2288fe77f52c Mon Sep 17 00:00:00 2001 From: Takeshi Nakatani Date: Fri, 15 Mar 2024 16:56:50 +0900 Subject: [PATCH] Updated github actions tools and Changed support OS/PHP --- .github/workflows/ci.yml | 19 +++++++++----- .github/workflows/phpexttypevars.sh | 40 ++++++++++++++++++++++++----- 2 files changed, 47 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d7a5007..07ab8be 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -66,8 +66,9 @@ jobs: - rockylinux:9 - rockylinux:8 - centos:centos7 + - fedora:39 - fedora:38 - - fedora:37 + - alpine:3.19 - alpine:3.18 php: @@ -90,11 +91,17 @@ jobs: NO_INTERACTION: 1 steps: - # - # Checks-out your repository under $GITHUB_WORKSPACE, so your - # job can access it - # - - name: Checkout sources + # [NOTE] + # actions/checkout@v3 uses nodejs v16 and will be deprecated. + # However, @v4 does not work on centos7 depending on the glibc version, + # so we will continue to use @v3. + # + - name: Checkout source code(other than centos7) + if: matrix.container != 'centos:centos7' + uses: actions/checkout@v4 + + - name: Checkout source code(only centos7) + if: matrix.container == 'centos:centos7' uses: actions/checkout@v3 # diff --git a/.github/workflows/phpexttypevars.sh b/.github/workflows/phpexttypevars.sh index 13f9e2b..7173c46 100644 --- a/.github/workflows/phpexttypevars.sh +++ b/.github/workflows/phpexttypevars.sh @@ -375,8 +375,8 @@ elif [ "${CI_OSTYPE}" = "centos:7" ] || [ "${CI_OSTYPE}" = "centos:centos7" ]; t IS_OS_CENTOS=1 -elif [ "${CI_OSTYPE}" = "fedora:38" ]; then - DIST_TAG="fedora/38" +elif [ "${CI_OSTYPE}" = "fedora:39" ]; then + DIST_TAG="fedora/39" PKG_EXT="rpm" PKG_OUTPUT_DIR="packages" @@ -390,7 +390,7 @@ elif [ "${CI_OSTYPE}" = "fedora:38" ]; then INSTALL_PKG_LIST="git make diffutils pkgconfig patch yum-utils rpmdevtools redhat-rpm-config rpm-build rpm-devel rpmlint scl-utils-build ruby-devel rubygems procps python3 chmpx-devel" INSTALL_PHP_PRE_ADD_REPO="" - INSTALL_PHP_REPO="https://rpms.remirepo.net/fedora/remi-release-38.rpm" + INSTALL_PHP_REPO="https://rpms.remirepo.net/fedora/remi-release-39.rpm" INSTALL_PHP_PKG_LIST="php${PHPVER_NOPERIOD}-php-devel php${PHPVER_NOPERIOD}-scldevel php${PHPVER_NOPERIOD}-build" INSTALL_PHP_OPT="" INSTALL_PHP_POST_CONFIG="" @@ -399,8 +399,8 @@ elif [ "${CI_OSTYPE}" = "fedora:38" ]; then IS_OS_FEDORA=1 -elif [ "${CI_OSTYPE}" = "fedora:37" ]; then - DIST_TAG="fedora/37" +elif [ "${CI_OSTYPE}" = "fedora:38" ]; then + DIST_TAG="fedora/38" PKG_EXT="rpm" PKG_OUTPUT_DIR="packages" @@ -414,7 +414,7 @@ elif [ "${CI_OSTYPE}" = "fedora:37" ]; then INSTALL_PKG_LIST="git make diffutils pkgconfig patch yum-utils rpmdevtools redhat-rpm-config rpm-build rpm-devel rpmlint scl-utils-build ruby-devel rubygems procps python3 chmpx-devel" INSTALL_PHP_PRE_ADD_REPO="" - INSTALL_PHP_REPO="https://rpms.remirepo.net/fedora/remi-release-37.rpm" + INSTALL_PHP_REPO="https://rpms.remirepo.net/fedora/remi-release-38.rpm" INSTALL_PHP_PKG_LIST="php${PHPVER_NOPERIOD}-php-devel php${PHPVER_NOPERIOD}-scldevel php${PHPVER_NOPERIOD}-build" INSTALL_PHP_OPT="" INSTALL_PHP_POST_CONFIG="" @@ -423,6 +423,34 @@ elif [ "${CI_OSTYPE}" = "fedora:37" ]; then IS_OS_FEDORA=1 +elif [ "${CI_OSTYPE}" = "alpine:3.19" ]; then + DIST_TAG="alpine/v3.19" + PKG_EXT="apk" + PKG_OUTPUT_DIR="packages" + + INSTALLER_BIN="apk" + UPDATE_CMD="update" + UPDATE_CMD_ARG="--no-progress" + INSTALL_CMD="add" + INSTALL_CMD_ARG="--no-progress --no-cache" + INSTALL_AUTO_ARG="" + INSTALL_QUIET_ARG="-q" + INSTALL_PKG_LIST="bash sudo alpine-sdk util-linux-misc musl-locales ruby-dev procps chmpx-dev" + + INSTALL_PHP_PRE_ADD_REPO="" + INSTALL_PHP_REPO="" + INSTALL_PHP_PKG_LIST="php${PHPVER_NOPERIOD} php${PHPVER_NOPERIOD}-dev php${PHPVER_NOPERIOD}-tokenizer" + INSTALL_PHP_OPT="" + INSTALL_PHP_POST_CONFIG="" + INSTALL_PHP_POST_BIN="" + SWITCH_PHP_COMMAND="" + + IS_OS_ALPINE=1 + + if [ "${PHPVER_NOPERIOD}" != "82" ]; then + NOT_PROVIDED_PHPVER=1 + fi + elif [ "${CI_OSTYPE}" = "alpine:3.18" ]; then DIST_TAG="alpine/v3.18" PKG_EXT="apk"