From 0582bf96c4f81ed3622bfd9e5a1aac047672388e Mon Sep 17 00:00:00 2001 From: Casey Waldren Date: Wed, 1 Nov 2023 11:22:24 -0700 Subject: [PATCH] chore: run build-release.sh in client/server CI (#279) This commit runs `./build-release` in our Linux CI step --- .github/actions/ci/action.yml | 12 ++++++++++++ .github/workflows/client.yml | 1 + .github/workflows/server.yml | 1 + 3 files changed, 14 insertions(+) diff --git a/.github/actions/ci/action.yml b/.github/actions/ci/action.yml index 963940417..72c62017c 100644 --- a/.github/actions/ci/action.yml +++ b/.github/actions/ci/action.yml @@ -15,10 +15,16 @@ inputs: required: false default: 'true' platform_version: + description: 'Boost platform version' required: false default: "22.04" toolset: + description: 'Boost toolset' required: false + simulate_release: + description: 'Whether to run ./build-release.sh for the CMake target' + required: false + default: 'false' runs: using: composite @@ -54,3 +60,9 @@ runs: # This uses the binary, versus "make tests" because the binary # has better performance and output. run: ./build/gtest_${{ inputs.cmake_target }} + - name: Simulate Release + if: inputs.simulate_release == 'true' + shell: bash + run: ./scripts/build-release.sh ${{ inputs.cmake_target }} + env: + BOOST_ROOT: ${{ steps.install-boost.outputs.BOOST_ROOT }} diff --git a/.github/workflows/client.yml b/.github/workflows/client.yml index d21aca4da..62ca5f879 100644 --- a/.github/workflows/client.yml +++ b/.github/workflows/client.yml @@ -36,6 +36,7 @@ jobs: - uses: ./.github/actions/ci with: cmake_target: launchdarkly-cpp-client + simulate_release: true build-test-client-mac: runs-on: macos-12 steps: diff --git a/.github/workflows/server.yml b/.github/workflows/server.yml index 3edcc2ea1..4f02084c4 100644 --- a/.github/workflows/server.yml +++ b/.github/workflows/server.yml @@ -37,6 +37,7 @@ jobs: - uses: ./.github/actions/ci with: cmake_target: launchdarkly-cpp-server + simulate_release: true build-test-server-mac: runs-on: macos-12 steps: