#163: Fixed nightly tests (#164) #439
This file contains hidden or 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: 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/' |