Skip to content

Commit e203efa

Browse files
committed
ci: build and test tntcxx on macos 11 and 12
The project is tested in both Release and Debug modes on each version of macos. Tarantool is installed from brew, the last stable version is used. The workflow is defined in the same file as Ubuntu workflow, so the file is renamed to "testing".
1 parent b3c1733 commit e203efa

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

.github/workflows/ubuntu.yml renamed to .github/workflows/testing.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: ubuntu
1+
name: testing
22

33
on:
44
workflow_dispatch:
@@ -15,8 +15,8 @@ jobs:
1515
runs-on:
1616
- ubuntu-20.04
1717
- ubuntu-22.04
18-
tarantool:
19-
- '2.11'
18+
- macos-11
19+
- macos-12
2020
mode:
2121
- Debug
2222
- Release
@@ -27,16 +27,22 @@ jobs:
2727
- name: Clone the connector
2828
uses: actions/checkout@v3
2929

30-
- name: Setup tarantool ${{ matrix.tarantool }}
30+
- name: Setup tarantool 2.11
31+
if: startsWith(matrix.runs-on, 'ubuntu')
3132
uses: tarantool/setup-tarantool@v1
3233
with:
33-
tarantool-version: ${{ matrix.tarantool }}
34+
tarantool-version: '2.11'
35+
36+
- name: Setup stable tarantool from brew
37+
if: startsWith(matrix.runs-on, 'macos')
38+
run: brew install tarantool
3439

3540
- name: build
3641
run: |
3742
mkdir build
3843
cd build
3944
cmake -DCMAKE_BUILD_TYPE=${{ matrix.mode }} -DTNTCXX_BUILD_TESTING=ON -DTNTCXX_ENABLE_SSL=OFF ..
4045
make -j
46+
4147
- name: test
4248
run: cd build && ctest --output-on-failure

0 commit comments

Comments
 (0)