-
Notifications
You must be signed in to change notification settings - Fork 6
61 lines (55 loc) · 1.47 KB
/
reusable-testing.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: reusable testing
on:
workflow_call:
inputs:
runs-on:
required: true
type: string
build-type:
required: true
type: string
cxx-standard:
required: false
type: number
c-compiler:
default: gcc
type: string
cxx-compiler:
default: g++
type: string
use-valgrind:
default: false
type: boolean
enable-sanitizers:
default: false
type: boolean
build-only:
default: false
type: boolean
jobs:
testing:
runs-on: ${{ inputs.runs-on }}
steps:
- name: Clone the connector
uses: actions/checkout@v3
- name: Setup Tarantool
if: ${{ !inputs.build-only }}
uses: ./.github/actions/setup-tarantool
with:
runs-on: ${{ inputs.runs-on }}
- name: Setup valgrind
if: inputs.use-valgrind
run: sudo apt update && sudo apt install -y valgrind
- name: Build tntcxx
uses: ./.github/actions/build-tntcxx
with:
build-type: ${{ inputs.build-type }}
enable-sanitizers: ${{ inputs.enable-sanitizers }}
cxx-standard: ${{ inputs.cxx-standard }}
c-compiler: ${{ inputs.c-compiler }}
cxx-compiler: ${{ inputs.cxx-compiler }}
- name: Test tntcxx
if: ${{ !inputs.build-only }}
uses: ./.github/actions/test-tntcxx
with:
use-valgrind: ${{ inputs.use-valgrind }}