Skip to content

Commit 8590796

Browse files
committed
github-ci: add workflow with Tarantool 1.6.9
Tarantool 1.6.9 cannot be installed from a ready package, so we need to build it manually.
1 parent 5136cb7 commit 8590796

File tree

1 file changed

+43
-1
lines changed

1 file changed

+43
-1
lines changed

.github/workflows/testing.yml

Lines changed: 43 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ jobs:
2929
golang:
3030
- 1.13
3131
tarantool:
32+
- '1.6.9'
3233
- '1.10'
3334
- '2.8'
3435
- '2.10'
@@ -44,12 +45,51 @@ jobs:
4445
golang: 1.18
4546
coveralls: false
4647

48+
env:
49+
TNT_BUILD_INSTALL_PATH: /home/runner/tnt-install
50+
4751
steps:
4852
- name: Clone the connector
4953
uses: actions/checkout@v2
5054

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+
5191
- name: Setup Tarantool ${{ matrix.tarantool }}
52-
if: matrix.tarantool != '2.x-latest'
92+
if: matrix.tarantool != '2.x-latest' && matrix.tarantool != '1.6.9'
5393
uses: tarantool/setup-tarantool@v1
5494
with:
5595
tarantool-version: ${{ matrix.tarantool }}
@@ -66,12 +106,14 @@ jobs:
66106
go-version: ${{ matrix.golang }}
67107

68108
- name: Install test dependencies
109+
if: matrix.tarantool != '1.6.9'
69110
run: make deps
70111

71112
- name: Run regression tests
72113
run: make test
73114

74115
- name: Run tests with call_17
116+
if: matrix.tarantool != '1.6.9'
75117
run: make test TAGS="go_tarantool_call_17"
76118

77119
- name: Run fuzzing tests

0 commit comments

Comments
 (0)