-
Notifications
You must be signed in to change notification settings - Fork 0
76 lines (73 loc) · 1.95 KB
/
common-container.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
name: Common flow (container)
on:
workflow_call:
inputs:
runner:
default: 'ubuntu-latest'
type: string
container:
required: true
type: string
os-nickname:
type: string
REDIS_REF:
type: string
default: '7.2'
deploy:
type: boolean
default: false
dependencies_command:
type: string
python-setup:
type: string
jobs:
common-build:
runs-on: ${{ inputs.runner }}
container: ${{ inputs.container }}
steps:
- name: Install Deps
run: |
export DEBIAN_FRONTEND=noninteractive
${{ inputs.dependencies_command }}
- uses: actions/checkout@v3
- uses: kenchan0130/actions-system-info@master
id: system-info
- name: Clone Redis
uses: actions/checkout@v3
with:
repository: 'redis/redis'
ref: ${{ inputs.REDIS_REF }}
path: redis
- name: Install Python
if: ${{ inputs.python-setup }}
uses: actions/setup-python@v4
with:
python-version: ${{ inputs.python-setup }}
- name: Install Python Dependencies
run: pip3 install -r requirments.txt
- name: Install Redis Server
working-directory: redis
run: make -j `nproc` install
- name: Make
run: make
- name: test
run: RLTest --module bin/rediscompat.so
- name: Zip
# if: ${{ inputs.deploy }}
run: ./zip.sh
- name: Upload artifact
# if: ${{ inputs.deploy }}
uses: actions/upload-artifact@v3
with:
name: RedisStackStub
path: ./bin
retention-days: 1
- name: Upload S3
if: ${{ inputs.deploy }}
uses: shallwefootball/s3-upload-action@master
with:
aws_key_id: ${{ secrets.REDISLABSMODULES_ACCESS_KEY }}
aws_secret_access_key: ${{ secrets.REDISLABSMODULES_SECRET_ACCESS_KEY }}
aws_bucket: 'redismodules'
source_dir: ./bin
destination_dir: rediscompat