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