Skip to content

Commit

Permalink
github-ci: add workflow with Tarantool 1.6.9
Browse files Browse the repository at this point in the history
Tarantool 1.6.9 cannot be installed from a ready package, so we need
to build it manually.
  • Loading branch information
oleg-jukovec committed Jul 25, 2022
1 parent 4af37ee commit af36e9b
Showing 1 changed file with 42 additions and 1 deletion.
43 changes: 42 additions & 1 deletion .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
golang:
- 1.13
tarantool:
- '1.6.9'
- '1.10'
- '2.8'
- '2.10'
Expand All @@ -44,12 +45,50 @@ jobs:
golang: 1.18
coveralls: false

env:
TNT_BUILD_INSTALL_PATH: /home/runner/tnt-install

steps:
- name: Clone the connector
uses: actions/checkout@v2

- name: Cache Tarantool build
if: matrix.tarantool == '1.6.9'
id: cache-tnt-build
uses: actions/cache@v3
with:
path: ${{ env.TNT_BUILD_INSTALL_PATH }}
key: cache-tnt-${{ matrix.tarantool }}
- name: Clone Tarantool ${{ matrix.tarantool }}
if: matrix.tarantool == '1.6.9' && steps.cache-tnt-build.outputs.cache-hit != 'true'
uses: actions/checkout@v3
with:
repository: tarantool/tarantool
ref: ${{ matrix.tarantool }}
path: tarantool
fetch-depth: 0
submodules: true

- name: Build Tarantool ${{ matrix.tarantool }}
if: matrix.tarantool == '1.6.9' && steps.cache-tnt-build.outputs.cache-hit != 'true'
run: |
sudo apt-get -y install git build-essential cmake make zlib1g-dev \
libreadline-dev libncurses5-dev libssl-dev \
libunwind-dev libicu-dev python3 python3-yaml \
python3-six python3-gevent
cd ${GITHUB_WORKSPACE}/tarantool
mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
make
make DESTDIR=${TNT_BUILD_INSTALL_PATH} install
- name: Setup Tarantool ${{ matrix.tarantool }} from a custom build
if: matrix.tarantool == '1.6.9'
run: |
sudo cp -rvP ${TNT_BUILD_INSTALL_PATH}/usr/local/* /usr/local/
- name: Setup Tarantool ${{ matrix.tarantool }}
if: matrix.tarantool != '2.x-latest'
if: matrix.tarantool != '2.x-latest' && matrix.tarantool != '1.6.9'
uses: tarantool/setup-tarantool@v1
with:
tarantool-version: ${{ matrix.tarantool }}
Expand All @@ -66,12 +105,14 @@ jobs:
go-version: ${{ matrix.golang }}

- name: Install test dependencies
if: matrix.tarantool != '1.6.9'
run: make deps

- name: Run regression tests
run: make test

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

- name: Run fuzzing tests
Expand Down

0 comments on commit af36e9b

Please sign in to comment.