Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: add arm64 linux pipeline #2590

Open
wants to merge 14 commits into
base: unstable
Choose a base branch
from
11 changes: 10 additions & 1 deletion .github/workflows/kvrocks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,10 @@ jobs:
os: ubuntu-22.04
compiler: clang
new_encoding: -DENABLE_NEW_ENCODING=FALSE
- name: Ubuntu Arm64
os: [self-hosted, Linux, ARM64]
compiler: auto
arm_linux: true

runs-on: ${{ matrix.os }}
env:
Expand All @@ -213,11 +217,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
Expand Down Expand Up @@ -246,6 +254,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
Expand Down
Loading