From e12fe4e4a7d710060b15e761296e6d98660e95ce Mon Sep 17 00:00:00 2001 From: cheniujh <1271435567@qq.com> Date: Thu, 7 Nov 2024 15:55:39 +0800 Subject: [PATCH] fix: add centos CI in github action (#2942) * add centos CI instead of rockylinux --- .github/workflows/pika.yml | 37 +++++++++---------------------------- 1 file changed, 9 insertions(+), 28 deletions(-) diff --git a/.github/workflows/pika.yml b/.github/workflows/pika.yml index 79320d7a0..007f73aee 100644 --- a/.github/workflows/pika.yml +++ b/.github/workflows/pika.yml @@ -84,51 +84,32 @@ jobs: chmod +x integrate_test.sh sh integrate_test.sh - build_on_rocky: + + build_on_centos: runs-on: ubuntu-latest container: - image: rockylinux:9 + image: cheniujh/pika-centos7-ci:v5 steps: - - name: Install deps - run: | - dnf update -y - dnf install -y bash cmake wget git autoconf gcc perl-Digest-SHA tcl which tar g++ tar epel-release gcc-c++ libstdc++-devel gcc-toolset-13 - - - name: Set up Go - uses: actions/setup-go@v5 - with: - go-version: 1.19 - - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v1 with: fetch-depth: 0 - name: Configure CMake run: | - source /opt/rh/gcc-toolset-13/enable - cmake -B build -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} -DUSE_PIKA_TOOLS=ON -DCMAKE_CXX_FLAGS_DEBUG=-fsanitize=address . - - - uses: actions/cache@v3 - with: - path: ${{ github.workspace }}/deps - key: ${{ runner.os }}-rocky-deps-${{ hashFiles('**/CMakeLists.txt') }} - - - uses: actions/cache@v3 - with: - path: ${{ github.workspace }}/buildtrees - key: ${{ runner.os }}-rocky-buildtrees-${{ hashFiles('**/CMakeLists.txt') }} + source /opt/rh/devtoolset-10/enable + cmake -B build -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} -DUSE_PIKA_TOOLS=ON -DCMAKE_CXX_FLAGS_DEBUG=-fsanitize=address - name: Build run: | - source /opt/rh/gcc-toolset-13/enable + source /opt/rh/devtoolset-10/enable cmake --build build --config ${{ env.BUILD_TYPE }} - name: Cleanup run: | rm -rf ./deps - rm -rf ./buildtrees + rm -rf ./buildtrees - name: Test working-directory: ${{ github.workspace }}/build @@ -145,7 +126,6 @@ jobs: ../tests/integration/start_master_and_slave.sh chmod +x ../tests/integration/start_codis.sh ../tests/integration/start_codis.sh - - name: Run Go E2E Tests working-directory: ${{ github.workspace }}/build run: | @@ -155,6 +135,7 @@ jobs: chmod +x integrate_test.sh sh integrate_test.sh + build_on_macos: runs-on: macos-13