-
Notifications
You must be signed in to change notification settings - Fork 8
52 lines (47 loc) · 1.62 KB
/
Copy pathcpp_test.yml
File metadata and controls
52 lines (47 loc) · 1.62 KB
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
name: CI-cpp
on: push
jobs:
check:
name: Building on ${{ matrix.config.os }}
runs-on: ${{ matrix.config.os }}
strategy:
fail-fast: false
matrix:
config:
- { os: windows-latest }
- { os: macOS-latest }
- { os: ubuntu-latest }
steps:
- uses: actions/checkout@v4
- name: Install openssl MacOsX
if: matrix.config.os == 'macOS-latest'
run: |
brew install openssl
BREW_PREFIX=`brew --prefix`
echo "OPENSSL_ROOT_DIR=$BREW_PREFIX/opt/openssl" >> $GITHUB_ENV
- name: Install openssl Windows
if: matrix.config.os == 'windows-latest'
run: choco install openssl --version 3.1.1 -y
- name: Set OPENSSL_ROOT_DIR env
if: matrix.config.os == 'windows-latest'
run: |
echo 'OPENSSL_ROOT_DIR=C:\Program Files\OpenSSL' >> $GITHUB_ENV
shell: bash
- name: Setup Python 3.12 for cpp_tests
uses: actions/setup-python@v2
with:
python-version: 3.12
- uses: lukka/get-cmake@v4.2.1
- name: Run CMake
uses: lukka/run-cmake@v3.4
id: runcmake
with:
cmakeGenerator: 'Ninja'
cmakeListsOrSettingsJson: 'CMakeListsTxtBasic'
cmakeListsTxtPath: '${{ github.workspace }}/tests/cpp/CMakeLists.txt'
useVcpkgToolchainFile: true
buildWithCMakeArgs: '-- -v'
buildDirectory: '${{ runner.workspace }}/b/'
- name: Run Cpp tests
run: 'python3 ${{ github.workspace }}/tests/cpp/python/python_client_tests.py'
working-directory: '${{ runner.workspace }}/b/'