From dda7f0a803c55d17c5c9c2803bd3d72bb313a3ce Mon Sep 17 00:00:00 2001 From: Takeshi Nakatani Date: Wed, 6 Mar 2024 14:08:56 +0900 Subject: [PATCH] Changed support OS (fedora and alpine) --- .github/workflows/ci.yml | 21 ++++++++++++++------- .github/workflows/ostypevars.sh | 22 ++++++++++++++++++---- 2 files changed, 32 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9c57b25..e523a81 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -69,19 +69,26 @@ jobs: - rockylinux:9 - rockylinux:8 - centos:centos7 + - fedora:39 - fedora:38 - - fedora:37 + - alpine:3.19 - alpine:3.18 container: image: ${{ matrix.container }} steps: + # [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. # - # Checks-out your repository under $GITHUB_WORKSPACE, so your - # job can access it - # - - name: Checkout sources + - 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 # @@ -153,7 +160,7 @@ jobs: # : If you want to use the created Docker image as the default image, specify "default". # imageinfo: - - alpine:3.18,alpine:3.18,alpine,default + - alpine:3.19,alpine:3.19,alpine,default - ubuntu:22.04,ubuntu:22.04,ubuntu # @@ -161,7 +168,7 @@ jobs: # steps: - name: Checkout sources - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 diff --git a/.github/workflows/ostypevars.sh b/.github/workflows/ostypevars.sh index 7f604f6..caa4d53 100644 --- a/.github/workflows/ostypevars.sh +++ b/.github/workflows/ostypevars.sh @@ -206,8 +206,8 @@ elif [ "${CI_OSTYPE}" = "centos:7" ] || [ "${CI_OSTYPE}" = "centos:centos7" ]; t PKG_EXT="rpm" IS_OS_CENTOS=1 -elif [ "${CI_OSTYPE}" = "fedora:38" ]; then - DIST_TAG="fedora/38" +elif [ "${CI_OSTYPE}" = "fedora:39" ]; then + DIST_TAG="fedora/39" INSTALL_PKG_LIST="git autoconf automake gcc gcc-c++ gdb make libtool pkgconfig redhat-rpm-config rpm-build ruby-devel rubygems procps" INSTALLER_BIN="dnf" UPDATE_CMD="update" @@ -220,8 +220,8 @@ elif [ "${CI_OSTYPE}" = "fedora:38" ]; then PKG_EXT="rpm" IS_OS_FEDORA=1 -elif [ "${CI_OSTYPE}" = "fedora:37" ]; then - DIST_TAG="fedora/37" +elif [ "${CI_OSTYPE}" = "fedora:38" ]; then + DIST_TAG="fedora/38" INSTALL_PKG_LIST="git autoconf automake gcc gcc-c++ gdb make libtool pkgconfig redhat-rpm-config rpm-build ruby-devel rubygems procps" INSTALLER_BIN="dnf" UPDATE_CMD="update" @@ -234,6 +234,20 @@ elif [ "${CI_OSTYPE}" = "fedora:37" ]; then PKG_EXT="rpm" IS_OS_FEDORA=1 +elif [ "${CI_OSTYPE}" = "alpine:3.19" ]; then + DIST_TAG="alpine/v3.19" + INSTALL_PKG_LIST="bash sudo alpine-sdk automake autoconf libtool groff util-linux-misc musl-locales ruby-dev procps" + 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" + PKG_OUTPUT_DIR="apk_build" + PKG_EXT="apk" + IS_OS_ALPINE=1 + elif [ "${CI_OSTYPE}" = "alpine:3.18" ]; then DIST_TAG="alpine/v3.18" INSTALL_PKG_LIST="bash sudo alpine-sdk automake autoconf libtool groff util-linux-misc musl-locales ruby-dev procps"