34
34
coveralls : true
35
35
metrics-version : " 1.0.0"
36
36
cartridge-version : " 2.8.0"
37
+ - tarantool-version : " 2.11"
38
+ metrics-version : " 1.0.0"
39
+ vshard-version : " 0.1.24"
40
+ - tarantool-version : " master"
41
+ metrics-version : " 1.0.0"
42
+ vshard-version : " 0.1.24"
37
43
fail-fast : false
38
44
# Can't install older versions on 22.04,
39
45
# see https://github.com/tarantool/setup-tarantool/issues/36
@@ -42,10 +48,42 @@ jobs:
42
48
- uses : actions/checkout@master
43
49
44
50
- name : Setup Tarantool CE
51
+ if : matrix.tarantool-version != 'master'
45
52
uses : tarantool/setup-tarantool@v2
46
53
with :
47
54
tarantool-version : ${{ matrix.tarantool-version }}
48
55
56
+ - name : Setup tt
57
+ run : |
58
+ curl -L https://tarantool.io/release/2/installer.sh | sudo bash
59
+ sudo apt install -y tt
60
+ tt version
61
+
62
+ - name : Get Tarantool master latest commit
63
+ if : matrix.tarantool-version == 'master'
64
+ run : |
65
+ commit_hash=$(git ls-remote https://github.com/tarantool/tarantool.git --branch master | head -c 8)
66
+ echo "LATEST_COMMIT=${commit_hash}" >> $GITHUB_ENV
67
+ shell : bash
68
+
69
+ - name : Cache Tarantool master
70
+ if : matrix.tarantool-version == 'master'
71
+ id : cache-latest
72
+ uses : actions/cache@v3
73
+ with :
74
+ path : " ${GITHUB_WORKSPACE}/bin"
75
+ key : cache-latest-${{ env.LATEST_COMMIT }}
76
+
77
+ - name : Setup Tarantool master
78
+ if : matrix.tarantool-version == 'master' && steps.cache-latest.outputs.cache-hit != 'true'
79
+ run : |
80
+ tt init
81
+ tt install tarantool master
82
+
83
+ - name : Add Tarantool master to PATH
84
+ if : matrix.tarantool-version == 'master'
85
+ run : echo "${GITHUB_WORKSPACE}/bin" >> $GITHUB_PATH
86
+
49
87
- name : Fix luarocks in Tarantool CE 1.10.6
50
88
if : matrix.tarantool-version == '1.10.6'
51
89
run : |
@@ -57,11 +95,17 @@ jobs:
57
95
./deps.sh
58
96
env :
59
97
CARTRIDGE_VERSION : ${{ matrix.cartridge-version }}
98
+ VSHARD_VERSION : ${{ matrix.vshard-version }}
60
99
61
- - name : Install metrics
62
- if : matrix.metrics-version != ''
100
+ # There is unable to install metrics with tt for Tarantool 2.11
101
+ - name : Install metrics with tarantoolctl
102
+ if : matrix.metrics-version != '' && matrix.tarantool-version == '2.11'
63
103
run : tarantoolctl rocks install metrics ${{ matrix.metrics-version }}
64
104
105
+ - name : Install metrics with tt
106
+ if : matrix.metrics-version != '' && matrix.tarantool-version != '2.11'
107
+ run : tt rocks install metrics ${{ matrix.metrics-version }}
108
+
65
109
- name : Remove external merger if needed
66
110
if : ${{ matrix.remove-merger }}
67
111
run : rm .rocks/lib/tarantool/tuple/merger.so
@@ -90,24 +134,70 @@ jobs:
90
134
matrix :
91
135
tarantool-version : ["1.10", "2.11"]
92
136
metrics-version : ["1.0.0"]
137
+ cartridge-version : ["2.8.0"]
138
+ include :
139
+ - tarantool-version : " master"
140
+ metrics-version : " 1.0.0"
141
+ vshard-version : " 0.1.24"
93
142
fail-fast : false
94
143
runs-on : ubuntu-20.04
95
144
steps :
96
145
- uses : actions/checkout@master
97
146
98
147
- name : Setup Tarantool CE
148
+ if : matrix.tarantool-version != 'master'
99
149
uses : tarantool/setup-tarantool@v2
100
150
with :
101
151
tarantool-version : ${{ matrix.tarantool-version }}
102
152
153
+ - name : Setup tt
154
+ run : |
155
+ curl -L https://tarantool.io/release/2/installer.sh | sudo bash
156
+ sudo apt install -y tt
157
+ tt version
158
+
159
+ - name : Get Tarantool master latest commit
160
+ if : matrix.tarantool-version == 'master'
161
+ run : |
162
+ commit_hash=$(git ls-remote https://github.com/tarantool/tarantool.git --branch master | head -c 8)
163
+ echo "LATEST_COMMIT=${commit_hash}" >> $GITHUB_ENV
164
+ shell : bash
165
+
166
+ - name : Cache Tarantool master
167
+ if : matrix.tarantool-version == 'master'
168
+ id : cache-latest
169
+ uses : actions/cache@v3
170
+ with :
171
+ path : " ${GITHUB_WORKSPACE}/bin"
172
+ key : cache-latest-${{ env.LATEST_COMMIT }}
173
+
174
+ - name : Setup Tarantool master
175
+ if : matrix.tarantool-version == 'master' && steps.cache-latest.outputs.cache-hit != 'true'
176
+ run : |
177
+ tt init
178
+ tt install tarantool master
179
+
180
+ - name : Add Tarantool master to PATH
181
+ if : matrix.tarantool-version == 'master'
182
+ run : echo "${GITHUB_WORKSPACE}/bin" >> $GITHUB_PATH
183
+
103
184
- name : Install requirements for community
104
185
run : |
105
186
tarantool --version
106
187
./deps.sh
188
+ env :
189
+ CARTRIDGE_VERSION : ${{ matrix.cartridge-version }}
190
+ VSHARD_VERSION : ${{ matrix.vshard-version }}
107
191
108
- - name : Install metrics
192
+ # There is unable to install metrics with tt for Tarantool 2.11
193
+ - name : Install metrics with tarantoolctl
194
+ if : matrix.metrics-version != '' && matrix.tarantool-version == '2.11'
109
195
run : tarantoolctl rocks install metrics ${{ matrix.metrics-version }}
110
196
197
+ - name : Install metrics with tt
198
+ if : matrix.metrics-version != '' && matrix.tarantool-version != '2.11'
199
+ run : tt rocks install metrics ${{ matrix.metrics-version }}
200
+
111
201
# This server starts and listen on 8084 port that is used for tests
112
202
- name : Stop Mono server
113
203
run : sudo kill -9 $(sudo lsof -t -i tcp:8084) || true
@@ -127,6 +217,7 @@ jobs:
127
217
- folder : " 2.11"
128
218
bundle : " tarantool-enterprise-sdk-nogc64-2.11.0-0-r563.linux.x86_64"
129
219
metrics-version : ["", "1.0.0"]
220
+ cartridge-version : ["2.8.0"]
130
221
fail-fast : false
131
222
runs-on : ubuntu-20.04
132
223
steps :
@@ -138,9 +229,13 @@ jobs:
138
229
tar -xzf ${{ matrix.tarantool-version.bundle }}.tar.gz
139
230
rm -f ${{ matrix.tarantool-version.bundle }}.tar.gz
140
231
sudo cp tarantool-enterprise/tarantool /usr/bin/tarantool
232
+ sudo rm tarantool-enterprise/tt
141
233
source tarantool-enterprise/env.sh
142
234
tarantool --version
143
235
./deps.sh
236
+ env :
237
+ CARTRIDGE_VERSION : ${{ matrix.cartridge-version }}
238
+ VSHARD_VERSION : ${{ matrix.vshard-version }}
144
239
145
240
- name : Install metrics
146
241
if : matrix.metrics-version != ''
0 commit comments