ci: basic add_subdirectory cmake integration test #8
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: cmake-integration | |
on: | |
push: | |
branches: [ main ] | |
paths-ignore: | |
- '**.md' # Do not need to run CI for markdown changes. | |
pull_request: | |
branches: [ "main", "feat/**" ] | |
paths-ignore: | |
- '**.md' | |
schedule: | |
# Run daily at midnight PST | |
- cron: '0 8 * * *' | |
jobs: | |
test: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Ninja | |
uses: ./.github/actions/install-ninja | |
- name: Install boost | |
uses: ./.github/actions/install-boost | |
id: install-boost | |
with: | |
platform_version: "22.04" | |
- name: Install OpenSSL | |
uses: ./.github/actions/install-openssl | |
id: install-openssl | |
- name: Configure CMake Integration Tests | |
run: ./scripts/configure-cmake-integration-tests.sh | |
env: | |
# Note: these are consumed by the SDK's CMake project, and then will be passed into the cmake integration tests | |
# so that the test projects will know where to find Boost and OpenSSL. More info in the README. | |
BOOST_ROOT: ${{ steps.install-boost.outputs.BOOST_ROOT }} | |
OPENSSL_ROOT_DIR: ${{ steps.install-openssl.outputs.OPENSSL_ROOT_DIR }} | |
- name: Run CMake Integration Tests | |
run: | | |
export CTEST_OUTPUT_ON_FAILURE=1 | |
cd build/cmake-tests && ctest | |
env: | |
# Note: these are consumed by the SDK's CMake project, and then will be passed into the cmake integration tests | |
# so that the test projects will know where to find Boost and OpenSSL. More info in the README. | |
BOOST_ROOT: ${{ steps.install-boost.outputs.BOOST_ROOT }} | |
OPENSSL_ROOT_DIR: ${{ steps.install-openssl.outputs.OPENSSL_ROOT_DIR }} |