This is an automated email from the ASF dual-hosted git repository.

tison pushed a commit to branch unstable
in repository https://gitbox.apache.org/repos/asf/kvrocks.git


The following commit(s) were added to refs/heads/unstable by this push:
     new 8cd6f59e ci: add archlinux container case (#1601)
8cd6f59e is described below

commit 8cd6f59e46fb2aaf144514420dbcb1853ca97b7e
Author: Hauru <[email protected]>
AuthorDate: Sat Jul 22 23:41:03 2023 +0800

    ci: add archlinux container case (#1601)
---
 .github/workflows/kvrocks.yaml | 16 +++++++++++++---
 1 file changed, 13 insertions(+), 3 deletions(-)

diff --git a/.github/workflows/kvrocks.yaml b/.github/workflows/kvrocks.yaml
index 78a98e7e..635f7b52 100644
--- a/.github/workflows/kvrocks.yaml
+++ b/.github/workflows/kvrocks.yaml
@@ -302,6 +302,9 @@ jobs:
           - name: CentOS 7
             image: centos:7
             compiler: gcc
+          - name: ArchLinux base
+            image: archlinux:base
+            compiler: gcc
     runs-on: ubuntu-22.04
     container:
       image: ${{ matrix.image }}
@@ -310,7 +313,16 @@ jobs:
         if: ${{ startsWith(matrix.image, 'centos') }}
         run: |
           yum install -y centos-release-scl-rh
-          yum install -y devtoolset-11 python3 autoconf automake wget git
+          yum install -y devtoolset-11 python3 autoconf automake wget git gcc 
gcc-c++
+          echo "NPROC=$(nproc)" >> $GITHUB_ENV
+          mv /usr/bin/gcc /usr/bin/gcc-4.8.5
+          ln -s /opt/rh/devtoolset-11/root/bin/gcc /usr/bin/gcc
+          mv /usr/bin/g++ /usr/bin/g++-4.8.5
+          ln -s /opt/rh/devtoolset-11/root/bin/g++ /usr/bin/g++
+      - name: Setup ArchLinux
+        if: ${{ startsWith(matrix.image, 'archlinux') }}
+        run: |
+          yes|pacman -Sy autoconf automake python3 git wget which cmake make 
gcc
           echo "NPROC=$(nproc)" >> $GITHUB_ENV
 
       - name: Cache redis
@@ -339,9 +351,7 @@ jobs:
           go-version-file: 'tests/gocase/go.mod'
 
       - name: Build Kvrocks
-        if: ${{ startsWith(matrix.image, 'centos') }}
         run: |
-          source /opt/rh/devtoolset-11/enable
           ./x.py build -j$NPROC --unittest --compiler ${{ matrix.compiler }}
 
       - name: Run Unit Test

Reply via email to