diff --git a/.github/workflows/kvrocks.yaml b/.github/workflows/kvrocks.yaml index da2f1290e6b..f7bfcc00b2c 100644 --- a/.github/workflows/kvrocks.yaml +++ b/.github/workflows/kvrocks.yaml @@ -199,6 +199,10 @@ jobs: os: ubuntu-22.04 compiler: clang new_encoding: -DENABLE_NEW_ENCODING=FALSE + - name: Ubuntu Arm64 + os: ubuntu-24.04-arm + compiler: auto + arm_linux: true runs-on: ${{ matrix.os }} env: @@ -212,11 +216,15 @@ jobs: echo "NPROC=$(sysctl -n hw.ncpu)" >> $GITHUB_ENV echo "CMAKE_EXTRA_DEFS=-DOPENSSL_ROOT_DIR=/usr/local/opt/openssl" >> $GITHUB_ENV - name: Setup Linux - if: ${{ startsWith(matrix.os, 'ubuntu') }} + if: ${{ startsWith(matrix.os, 'ubuntu') || matrix.arm_linux }} run: | sudo apt update sudo apt install -y ninja-build echo "NPROC=$(nproc)" >> $GITHUB_ENV + - name: Setup Linux ARM64 + if: ${{ matrix.arm_linux }} + run: | + sudo apt install -y git build-essential cmake libtool python3 python3-pip libssl-dev - name: Cache redis id: cache-redis @@ -245,6 +253,7 @@ jobs: with: fetch-depth: 0 - uses: actions/setup-python@v5 + if: ${{ !matrix.arm_linux }} with: python-version: 3.x - uses: actions/setup-go@v5