Skip to content

Commit 198256b

Browse files
committed
use Redis from the official packages.redis.io APT repository
1 parent 5b5ac0b commit 198256b

File tree

1 file changed

+6
-20
lines changed

1 file changed

+6
-20
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ jobs:
1414
run: |
1515
sudo apt-get -qq update
1616
sudo apt-get install autoconf automake pkg-config libevent-dev libpcre3-dev libssl-dev
17+
1718
- name: Build
1819
run: autoreconf -ivf && ./configure && make -j
1920
- name: Setup Python
@@ -25,27 +26,12 @@ jobs:
2526
- name: Install Python dependencies
2627
run: pip install -r ./tests/test_requirements.txt
2728

28-
- name: Cache Redis
29-
id: cache-redis
30-
uses: actions/cache@v1
31-
with:
32-
path: /home/runner/work/redis
33-
key: ${{ runner.os }}-redis
34-
35-
- name: Check out Redis
36-
if: steps.cache-redis.outputs.cache-hit != 'true'
37-
uses: actions/checkout@v3
38-
with:
39-
repository: 'redis/redis'
40-
ref: 'unstable'
41-
path: 'redis'
42-
43-
- name: Build and run Redis
44-
if: steps.cache-redis.outputs.cache-hit != 'true'
29+
- name: Install Redis
4530
run: |
46-
cd redis
47-
make BUILD_TLS=yes -j
48-
./src/redis-server --version
31+
curl -fsSL https://packages.redis.io/gpg | sudo gpg --dearmor -o /usr/share/keyrings/redis-archive-keyring.gpg
32+
echo "deb [signed-by=/usr/share/keyrings/redis-archive-keyring.gpg] https://packages.redis.io/deb $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/redis.list
33+
sudo apt-get -qq update
34+
sudo apt-get install redis
4935
5036
- name: Generate TLS test certificates
5137
if: matrix.platform == 'ubuntu-latest'

0 commit comments

Comments
 (0)