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