29
29
golang :
30
30
- 1.13
31
31
tarantool :
32
+ - ' 1.6.9'
32
33
- ' 1.10'
33
34
- ' 2.8'
34
35
- ' 2.10'
@@ -44,12 +45,51 @@ jobs:
44
45
golang : 1.18
45
46
coveralls : false
46
47
48
+ env :
49
+ TNT_BUILD_INSTALL_PATH : /home/runner/tnt-install
50
+
47
51
steps :
48
52
- name : Clone the connector
49
53
uses : actions/checkout@v2
50
54
55
+ - name : Cache Tarantool build
56
+ if : matrix.tarantool == '1.6.9'
57
+ id : cache-tnt-build
58
+ uses : actions/cache@v3
59
+ with :
60
+ path : ${{ env.TNT_BUILD_INSTALL_PATH }}
61
+ key : cache-tnt-${{ matrix.tarantool }}
62
+
63
+ - name : Clone Tarantool ${{ matrix.tarantool }}
64
+ if : matrix.tarantool == '1.6.9'
65
+ uses : actions/checkout@v3
66
+ with :
67
+ repository : tarantool/tarantool
68
+ ref : ${{ matrix.tarantool }}
69
+ path : tarantool
70
+ fetch-depth : 0
71
+ submodules : true
72
+
73
+ - name : Build Tarantool ${{ matrix.tarantool }}
74
+ if : matrix.tarantool == '1.6.9'
75
+ run : |
76
+ sudo apt-get -y install git build-essential cmake make zlib1g-dev \
77
+ libreadline-dev libncurses5-dev libssl-dev \
78
+ libunwind-dev libicu-dev python3 python3-yaml \
79
+ python3-six python3-gevent
80
+ cd ${GITHUB_WORKSPACE}/tarantool
81
+ mkdir build && cd build
82
+ cmake .. -DCMAKE_BUILD_TYPE=Release
83
+ make
84
+ make DESTDIR=${TNT_BUILD_INSTALL_PATH} install
85
+
86
+ - name : Setup Tarantool ${{ matrix.tarantool }} from a custom build
87
+ if : matrix.tarantool == '1.6.9'
88
+ run : |
89
+ sudo cp -rvP ${TNT_BUILD_INSTALL_PATH}/usr/local/* /usr/local/
90
+
51
91
- name : Setup Tarantool ${{ matrix.tarantool }}
52
- if : matrix.tarantool != '2.x-latest'
92
+ if : matrix.tarantool != '2.x-latest' && matrix.tarantool != '1.6.9'
53
93
uses : tarantool/setup-tarantool@v1
54
94
with :
55
95
tarantool-version : ${{ matrix.tarantool }}
@@ -66,12 +106,14 @@ jobs:
66
106
go-version : ${{ matrix.golang }}
67
107
68
108
- name : Install test dependencies
109
+ if : matrix.tarantool != '1.6.9'
69
110
run : make deps
70
111
71
112
- name : Run regression tests
72
113
run : make test
73
114
74
115
- name : Run tests with call_17
116
+ if : matrix.tarantool != '1.6.9'
75
117
run : make test TAGS="go_tarantool_call_17"
76
118
77
119
- name : Run fuzzing tests
0 commit comments