Skip to content

Commit

Permalink
more platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
cwaldren-ld committed Oct 2, 2024
1 parent ef513bf commit 981a1f7
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 21 deletions.
43 changes: 43 additions & 0 deletions .github/actions/cmake-test/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# This is a composite to allow sharing these steps into other workflows.
# It isn't a shared workflow, because then it isn't convenient to add
# additional package-specific steps.
name: CMake Integration Test
description: 'CMake integration test suitable for running on multiple platforms.'
inputs:
platform_version:
description: 'Boost platform version'
required: false
default: "22.04"
toolset:
description: 'Boost toolset'
required: false


runs:
using: composite
steps:
- name: Install Ninja
uses: ./.github/actions/install-ninja
- name: Install boost
uses: ./.github/actions/install-boost
id: install-boost
with:
platform_version: ${{ inputs.platform_version }}
toolset: ${{ inputs.toolset }}
- name: Install OpenSSL
uses: ./.github/actions/install-openssl
id: install-openssl
- name: Configure CMake Integration Tests
shell: bash
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
shell: bash
run: |
export CTEST_OUTPUT_ON_FAILURE=1
cd build/cmake-tests && ctest
43 changes: 22 additions & 21 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,29 +14,30 @@ on:
- cron: '0 8 * * *'

jobs:
test:
test-ubuntu:
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
- uses: ./.github/actions/cmake-test
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
platform_version: '22.04'

test-macos:
runs-on: macos-12
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/cmake-test
with:
platform_version: '12'

test-windows:
runs-on: windows-2022
steps:
- uses: actions/checkout@v4
- uses: ilammy/msvc-dev-cmd@v1
- uses: ./.github/actions/cmake-test
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
BOOST_ROOT: 'C:\local\boost_1_81_0\lib64-msvc-14.3'
with:
platform_version: 2022
toolset: msvc

0 comments on commit 981a1f7

Please sign in to comment.