1
1
# This is a composite workflow that an generate all the release artifacts
2
- # for the C++ client SDK .
2
+ # for the C++ client-side & server-side SDKs .
3
3
4
4
# This can be ran automatically with the tag_name output from release-please,
5
5
# or ran triggered manually with a user provided tag.
6
6
7
- name : C++ Client Release
8
- description : C++ Client Release Process
7
+ name : C++ SDK Release
8
+ description : C++ SDK Release Process
9
9
inputs :
10
10
tag_name :
11
11
description : ' The tag name of the release to upload artifacts to.'
12
12
required : true
13
13
github_token :
14
+ description : ' The GitHub token to use for uploading artifacts.'
14
15
required : true
16
+ sdk_path :
17
+ description : ' Path to the sdk, e.g. libs/client-sdk.'
18
+ required : true
19
+ sdk_cmake_target :
20
+ description : ' CMake target of the sdk, e.g. launchdarkly-cpp-client.'
15
21
16
22
runs :
17
23
using : composite
@@ -28,10 +34,10 @@ runs:
28
34
run : |
29
35
sudo apt-get install doxygen
30
36
sudo apt-get install graphviz
31
- ./scripts/build-release.sh launchdarkly-cpp-client
32
- ./scripts/build-docs.sh libs/client-sdk
37
+ ./scripts/build-release.sh ${{ inputs.sdk_cmake_target }}
38
+ ./scripts/build-docs.sh ${{ inputs.sdk_path }}
33
39
env :
34
- WORKSPACE : libs/client-sdk
40
+ WORKSPACE : ${{ inputs.sdk_path }}
35
41
BOOST_ROOT : ${{ steps.install-boost.outputs.BOOST_ROOT }}
36
42
37
43
- name : Archive Release Linux - GCC/x64/Static
64
70
if : runner.os == 'Linux'
65
71
uses : ./.github/actions/publish-docs
66
72
with :
67
- workspace_path : libs/client-sdk
73
+ workspace_path : ${{ inputs.sdk_path }}
68
74
69
75
- name : Configure MSVC
70
76
if : runner.os == 'Windows'
78
84
BOOST_LIBRARY_DIR : ' C:\local\boost_1_81_0\lib64-msvc-14.3'
79
85
BOOST_LIBRARYDIR : ' C:\local\boost_1_81_0\lib64-msvc-14.3'
80
86
BOOST_ROOT : ${{ steps.install-boost.outputs.BOOST_ROOT }}
81
- run : ./scripts/build-windows.sh launchdarkly-cpp-client
87
+ run : ./scripts/build-windows.sh ${{ inputs.sdk_cmake_target }}
82
88
83
89
- name : Archive Release Windows - MSVC/x64/Static
84
90
if : runner.os == 'Windows'
@@ -130,9 +136,9 @@ runs:
130
136
echo "OPENSSL_ROOT_DIR=$(brew --prefix [email protected] )" >> "$GITHUB_ENV"
131
137
export OPENSSL_ROOT_DIR=$(brew --prefix [email protected] )
132
138
133
- ./scripts/build-release.sh launchdarkly-cpp-client
139
+ ./scripts/build-release.sh ${{ inputs.sdk_cmake_target }}
134
140
env :
135
- WORKSPACE : libs/client-sdk
141
+ WORKSPACE : ${{ inputs.sdk_path }}
136
142
BOOST_ROOT : ${{ steps.install-boost.outputs.BOOST_ROOT }}
137
143
138
144
- name : Archive Release Mac - AppleClang/x64/Static
0 commit comments