Skip to content

try using env variables' #7

try using env variables'

try using env variables' #7

Workflow file for this run

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
- 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 }}