25
25
- ' 2.7'
26
26
- ' 2.8'
27
27
- ' 2.10'
28
+ - ' debug-master'
28
29
cartridge-version :
29
30
- ' 2.7.4'
30
31
metrics-version :
@@ -38,13 +39,62 @@ jobs:
38
39
metrics-version : ' 0.13.0'
39
40
coveralls : true
40
41
42
+ env :
43
+ TNT_DEBUG_PATH : /home/runner/tnt-debug
44
+
41
45
runs-on : ubuntu-latest
42
46
steps :
43
47
- name : Install tarantool ${{ matrix.tarantool }}
48
+ if : startsWith(matrix.tarantool, 'debug') != true
44
49
uses : tarantool/setup-tarantool@v1
45
50
with :
46
51
tarantool-version : ${{ matrix.tarantool }}
47
52
53
+ - name : Create variables for Tarantool ${{ matrix.tarantool }}
54
+ if : startsWith(matrix.tarantool, 'debug')
55
+ run : |
56
+ branch=$(echo ${{ matrix.tarantool }} | cut -d- -f2)
57
+ commit_hash=$(git ls-remote https://github.com/tarantool/tarantool.git --branch ${branch} | head -c 8)
58
+ echo "TNT_BRANCH=${branch}" >> $GITHUB_ENV
59
+ echo "VERSION_POSTFIX=-${commit_hash}" >> $GITHUB_ENV
60
+ shell : bash
61
+
62
+ - name : Cache tarantool build
63
+ if : startsWith(matrix.tarantool, 'debug')
64
+ id : cache-tnt-debug
65
+ uses : actions/cache@v3
66
+ with :
67
+ path : ${{ env.TNT_DEBUG_PATH }}
68
+ key : cache-tnt-${{ matrix.tarantool }}${{ env.VERSION_POSTFIX }}
69
+
70
+ - name : Clone tarantool ${{ matrix.tarantool }}
71
+ if : startsWith(matrix.tarantool, 'debug') && steps.cache-tnt-debug.outputs.cache-hit != 'true'
72
+ uses : actions/checkout@v3
73
+ with :
74
+ repository : tarantool/tarantool
75
+ ref : ${{ env.TNT_BRANCH }}
76
+ path : tarantool
77
+ fetch-depth : 0
78
+ submodules : true
79
+
80
+ - name : Build tarantool ${{ matrix.tarantool }}
81
+ if : startsWith(matrix.tarantool, 'debug') && steps.cache-tnt-debug.outputs.cache-hit != 'true'
82
+ run : |
83
+ sudo apt-get -y install git build-essential cmake make zlib1g-dev \
84
+ libreadline-dev libncurses5-dev libssl-dev \
85
+ libunwind-dev libicu-dev python3 python3-yaml \
86
+ python3-six python3-gevent
87
+ cd ${GITHUB_WORKSPACE}/tarantool
88
+ mkdir build && cd build
89
+ cmake .. -DCMAKE_BUILD_TYPE=Debug -DENABLE_DIST=ON
90
+ make
91
+ make DESTDIR=${TNT_DEBUG_PATH} install
92
+
93
+ - name : Install tarantool ${{ matrix.tarantool }}
94
+ if : startsWith(matrix.tarantool, 'debug')
95
+ run : |
96
+ sudo cp -rvP ${TNT_DEBUG_PATH}/usr/local/* /usr/local/
97
+
48
98
- name : Clone the module
49
99
uses : actions/checkout@v3
50
100
53
103
id : cache-rocks
54
104
with :
55
105
path : .rocks/
56
- key : " cache-rocks-${{ matrix.tarantool }}-\
106
+ key : " cache-rocks-${{ matrix.tarantool }}${{ env.VERSION_POSTFIX }} -\
57
107
${{ matrix.cartridge-version }}-\
58
108
${{ matrix.metrics-version }}"
59
109
0 commit comments