-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Since we support SSL in this module, it is neccessary to test it on Tararntool EE instances. After the patch Tarantool EE test env preparation was added and changed coveralls target from Tarantool 2.11 CE on Tarantool 3.2 EE.
- Loading branch information
1 parent
5ba2bc8
commit c7f494c
Showing
2 changed files
with
117 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
name: "Prepare test environment with Tarantool EE" | ||
description: "Prepares test environment with Tarantool EE" | ||
|
||
inputs: | ||
sdk-version: | ||
required: true | ||
type: string | ||
sdk-build: | ||
required: false | ||
type: string | ||
default: release | ||
sdk-gc: | ||
required: false | ||
type: string | ||
default: gc64 | ||
sdk-download-token: | ||
required: true | ||
type: string | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Install build requirements | ||
run: | | ||
sudo apt -y update | ||
sudo apt -y install git gcc make cmake unzip zip | ||
shell: bash | ||
|
||
- name: Cache Tarantool SDK | ||
id: cache-sdk | ||
uses: actions/cache@v3 | ||
with: | ||
path: tarantool-enterprise | ||
key: ${{ matrix.sdk-version }} | ||
|
||
- name: Download Tarantool SDK | ||
run: | | ||
ARCHIVE_NAME=tarantool-enterprise-sdk-${{ inputs.sdk-gc }}-${{ inputs.sdk-version }}.tar.gz | ||
ARCHIVE_PATH=$(echo ${{ inputs.sdk-version }} | sed -rn \ | ||
's/^([0-9]+)\.([0-9]+)\.([0-9]+-){2}([a-z0-9]+-)?r[0-9]+\.([a-z]+)\.([a-z0-9_]+)$/${{ inputs.sdk-build }}\/\5\/\6\/\1\.\2/p') | ||
curl -O -L \ | ||
https://tarantool:${{ inputs.sdk-download-token }}@download.tarantool.io/enterprise/${ARCHIVE_PATH}/${ARCHIVE_NAME} | ||
tar -xzf ${ARCHIVE_NAME} | ||
rm -f ${ARCHIVE_NAME} | ||
source tarantool-enterprise/env.sh | ||
shell: bash | ||
|
||
- name: Install tarantool headers | ||
run: | | ||
INCLUDE_DIR=$(./tarantool-enterprise/tarantool --version | gawk \ | ||
'/DCMAKE_INSTALL_PREFIX/ {dir=gensub(/.*-DCMAKE_INSTALL_PREFIX=(\/.*) .*/, "\\1", "g", $0); print dir}') | ||
sudo mkdir -p ${INCLUDE_DIR}/include | ||
sudo cp -r tarantool-enterprise/include/tarantool ${INCLUDE_DIR}/include | ||
shell: bash | ||
|
||
- name: Add SDK to PATH and set TARANTOOL_SDK_PATH variable | ||
run: | | ||
SDK_PATH="$(realpath tarantool-enterprise)" | ||
echo "${SDK_PATH}" >> ${GITHUB_PATH} | ||
echo "TARANTOOL_SDK_PATH=${SDK_PATH}" >> ${GITHUB_ENV} | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters