Skip to content

Commit

Permalink
chore: run build-release.sh in client/server CI (#279)
Browse files Browse the repository at this point in the history
This commit runs `./build-release` in our Linux CI step
  • Loading branch information
cwaldren-ld authored Nov 1, 2023
1 parent 8cd6a3b commit 0582bf9
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/actions/ci/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 }}
1 change: 1 addition & 0 deletions .github/workflows/client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 0582bf9

Please sign in to comment.