ci: build and test tntcxx on macos 11 and 12 #1
Workflow file for this run
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
name: testing | |
on: | |
workflow_dispatch: | |
pull_request: | |
push: | |
branches: [ "master" ] | |
tags: [ "*" ] | |
jobs: | |
ubuntu: | |
strategy: | |
fail-fast: false | |
matrix: | |
runs-on: | |
- ubuntu-20.04 | |
- ubuntu-22.04 | |
- macos-11 | |
- macos-12 | |
mode: | |
- Debug | |
- Release | |
test-ssl: | |
- Disabled | |
runs-on: ${{ matrix.runs-on }} | |
name: ${{ matrix.runs-on }} (${{ matrix.mode }}, ${{ matrix.test-ssl }} ssl test) | |
steps: | |
- name: Clone the connector | |
uses: actions/checkout@v3 | |
- name: Setup tarantool 2.11 | |
if: startsWith(matrix.runs-on, 'ubuntu') | |
uses: tarantool/setup-tarantool@v1 | |
with: | |
tarantool-version: '2.11' | |
- name: Setup stable tarantool from brew | |
if: startsWith(matrix.runs-on, 'macos') | |
run: brew install tarantool --stable | |
- name: build | |
run: | | |
mkdir build | |
cd build | |
cmake -DCMAKE_BUILD_TYPE=${{ matrix.mode }} -DTNTCXX_BUILD_TESTING=ON -DTNTCXX_ENABLE_SSL=ON .. | |
make -j | |
- name: test without SSL | |
if: matrix.test-ssl == 'Disabled' | |
run: cd build && ctest --output-on-failure -E ClientSSL.test | |
- name: test | |
if: matrix.test-ssl == 'Enabled' | |
run: cd build && ctest --output-on-failure |