ci: basic add_subdirectory cmake integration test #10
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: | |
# These will be injected into the SDK CMake project on the command line, via "-D BOOST_ROOT=..." | |
# and "-D OPENSSL_ROOT_DIR=...". When the integration tests are configured, they will then be passed | |
# along in the same manner to those test projects via the command line. | |
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 |