@@ -428,6 +428,9 @@ jobs:
428428 - name : Rocky Linux 9
429429 image : rockylinux:9
430430 compiler : gcc
431+ - name : Debian 12
432+ image : debian:12
433+ compiler : gcc
431434
432435 runs-on : ubuntu-22.04
433436 container :
@@ -474,6 +477,13 @@ jobs:
474477 update-alternatives --install /usr/bin/c++ c++ /opt/rh/gcc-toolset-12/root/usr/bin/g++ 100
475478 echo "NPROC=$(nproc)" >> $GITHUB_ENV
476479
480+ - name : Setup Debian 12
481+ if : ${{ startsWith(matrix.image, 'debian') }}
482+ run : |
483+ apt update
484+ apt install -y bash build-essential cmake curl git libssl-dev libtool python3 python3-pip wget
485+ echo "NPROC=$(nproc)" >> $GITHUB_ENV
486+
477487 - name : Cache redis
478488 id : cache-redis
479489 uses : actions/cache@v3
@@ -492,6 +502,7 @@ jobs:
492502
493503 - name : Install redis
494504 if : ${{ steps.cache-redis.outputs.cache-hit != 'true' || steps.cache-redis-server.outputs.cache-hit != 'true' }}
505+ shell : bash
495506 run : |
496507 curl -O https://download.redis.io/releases/redis-6.2.14.tar.gz
497508 tar -xzvf redis-6.2.14.tar.gz
@@ -520,11 +531,16 @@ jobs:
520531 GOCASE_RUN_ARGS=""
521532 ./x.py test go build $GOCASE_RUN_ARGS
522533
523- - name : Install redis-py
524- if : ${{ !startsWith(matrix.image, 'archlinux') }} # already installed
534+ - name : Install redis-py for openSUSE and Rocky
535+ if : ${{ !startsWith(matrix.image, 'archlinux') && !startsWith(matrix.image, 'debian') }}
525536 run : pip3 install redis==4.3.6
526537
538+ - name : Install redis-py for Debian
539+ if : ${{ startsWith(matrix.image, 'debian') }}
540+ run : apt install -y python3-redis
541+
527542 - name : Run kvrocks2redis Test
543+ shell : bash
528544 run : |
529545 $HOME/local/bin/redis-server --daemonize yes
530546 mkdir -p kvrocks2redis-ci-data
0 commit comments