Skip to content

Commit

Permalink
ci: add an alpine-based build & test workflow (#2760)
Browse files Browse the repository at this point in the history
  • Loading branch information
PragmaTwice authored Feb 2, 2025
1 parent c76a4d3 commit a81fd2f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/kvrocks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,10 @@ jobs:
- name: Debian 12
image: debian:12
compiler: gcc
- name: Alpine 3
image: alpine:3
compiler: gcc
disable_jemalloc: -DDISABLE_JEMALLOC=ON

runs-on: ubuntu-22.04
container:
Expand Down Expand Up @@ -498,6 +502,13 @@ jobs:
apt install -y bash build-essential cmake curl git libssl-dev libtool python3 python3-pip wget
echo "NPROC=$(nproc)" >> $GITHUB_ENV
- name: Setup Alpine
if: ${{ startsWith(matrix.image, 'alpine') }}
run: |
apk update
apk add bash cmake curl git python3 wget make gcc g++ autoconf linux-headers py3-pip py3-redis
echo "NPROC=$(nproc)" >> $GITHUB_ENV
- name: Cache redis
id: cache-redis
uses: actions/cache@v4
Expand Down Expand Up @@ -533,7 +544,7 @@ jobs:

- name: Build Kvrocks
run: |
./x.py build -j$NPROC --unittest --compiler ${{ matrix.compiler }}
./x.py build -j$NPROC --unittest --compiler ${{ matrix.compiler }} ${{ matrix.disable_jemalloc }}
- name: Run Unit Test
run: |
Expand All @@ -546,7 +557,7 @@ jobs:
./x.py test go build $GOCASE_RUN_ARGS
- name: Install redis-py for openSUSE and Rocky
if: ${{ !startsWith(matrix.image, 'archlinux') && !startsWith(matrix.image, 'debian') }}
if: ${{ !startsWith(matrix.image, 'archlinux') && !startsWith(matrix.image, 'debian') && !startsWith(matrix.image, 'alpine') }}
run: pip3 install redis==4.3.6

- name: Install redis-py for Debian
Expand Down
1 change: 1 addition & 0 deletions src/storage/redis_metadata.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#pragma once

#include <rocksdb/status.h>
#include <sys/time.h>

#include <atomic>
#include <bitset>
Expand Down

0 comments on commit a81fd2f

Please sign in to comment.