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 Debian environment to CI workflow #2428

Closed
Closed
Changes from 15 commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
aa269e4
add: debian to CI workflow
shikharvashistha Jul 16, 2024
2b1dbce
chore: debian step
shikharvashistha Jul 16, 2024
cc32ad7
fix: go installation issue
shikharvashistha Jul 16, 2024
6320d92
Merge branch 'unstable' into feat/debian-workflow
PragmaTwice Jul 16, 2024
99018b4
Merge branch 'unstable' into feat/debian-workflow
PragmaTwice Jul 16, 2024
af5a909
chore: updated install commands
shikharvashistha Jul 16, 2024
bac14c1
Merge branch 'unstable' into feat/debian-workflow
aleksraiden Jul 16, 2024
0eed513
Update .github/workflows/kvrocks.yaml
PragmaTwice Jul 16, 2024
6d9da14
Update .github/workflows/kvrocks.yaml
PragmaTwice Jul 16, 2024
cd1ec67
Update .github/workflows/kvrocks.yaml
PragmaTwice Jul 16, 2024
5c26ed2
Update .github/workflows/kvrocks.yaml
PragmaTwice Jul 17, 2024
fde2918
Merge branch 'unstable' into feat/debian-workflow
PragmaTwice Jul 17, 2024
e4174e2
Update .github/workflows/kvrocks.yaml
PragmaTwice Jul 17, 2024
32ce0c4
Update .github/workflows/kvrocks.yaml
PragmaTwice Jul 17, 2024
5220373
Update kvrocks.yaml
PragmaTwice Jul 17, 2024
2eed5fb
Update .github/workflows/kvrocks.yaml
PragmaTwice Jul 17, 2024
e50804a
fix: add git dependency
shikharvashistha Jul 18, 2024
6f35ec7
fix: venv issue with redis-py
shikharvashistha Jul 19, 2024
edf43da
Merge branch 'unstable' into feat/debian-workflow
shikharvashistha Jul 19, 2024
7abf2ee
fix: venv issue
shikharvashistha Jul 19, 2024
777d561
Merge branch 'unstable' into feat/debian-workflow
shikharvashistha Jul 26, 2024
2e8d18e
chore: update venv step
shikharvashistha Jul 27, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion .github/workflows/kvrocks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,9 @@ jobs:
- name: ArchLinux
image: archlinux:base
compiler: gcc
- name: Debian 12
image: debian:bookworm-slim
shikharvashistha marked this conversation as resolved.
Show resolved Hide resolved
compiler: gcc

runs-on: ubuntu-22.04
shikharvashistha marked this conversation as resolved.
Show resolved Hide resolved
container:
Expand All @@ -448,6 +451,16 @@ jobs:
update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-11 100
echo "NPROC=$(nproc)" >> $GITHUB_ENV

- name: Setup Debian
if: ${{ startsWith(matrix.image, 'debian') }}
run: |
apt update
apt install -y build-essential wget cmake libtool python3 libssl-dev python3 python3-pip bash curl
wget https://golang.org/dl/go1.22.5.linux-amd64.tar.gz
tar -C /usr/local -xzf go1.22.5.linux-amd64.tar.gz
export PATH=$PATH:/usr/local/go/bin
echo "NPROC=$(nproc)" >> $GITHUB_ENV

- name: Cache redis
id: cache-redis
uses: actions/cache@v3
Expand All @@ -466,6 +479,7 @@ jobs:

- name: Install redis
if: ${{ steps.cache-redis.outputs.cache-hit != 'true' || steps.cache-redis-server.outputs.cache-hit != 'true' }}
shell: bash
run: |
curl -O https://download.redis.io/releases/redis-6.2.14.tar.gz
tar -xzvf redis-6.2.14.tar.gz
Expand Down Expand Up @@ -495,7 +509,7 @@ jobs:
./x.py test go build $GOCASE_RUN_ARGS

- name: Install redis-py
if: ${{ !startsWith(matrix.image, 'archlinux') }} # already installed
if: ${{ !startsWith(matrix.image, 'archlinux') }}
PragmaTwice marked this conversation as resolved.
Show resolved Hide resolved
PragmaTwice marked this conversation as resolved.
Show resolved Hide resolved
run: pip3 install redis==4.3.6

- name: Run kvrocks2redis Test
Expand Down
Loading