@@ -18,6 +18,16 @@ inputs:
18
18
required : true
19
19
sdk_cmake_target :
20
20
description : ' CMake target of the sdk, e.g. launchdarkly-cpp-client.'
21
+ outputs :
22
+ hashes-linux :
23
+ description : " base64-encoded sha256 hash of linux build artifacts"
24
+ value : ${{ steps.hash-linux.outputs.hashes-linux }}
25
+ hashes-windows :
26
+ description : " base64-encoded sha256 hash of windows build artifacts"
27
+ value : ${{ steps.hash-windows.outputs.hashes-windows }}
28
+ hashes-macos :
29
+ description : " base64-encoded sha256 hash of macos build artifacts"
30
+ value : ${{ steps.hash-macos.outputs.hashes-macos }}
21
31
22
32
runs :
23
33
using : composite
56
66
type : ' zip'
57
67
filename : ' linux-gcc-x64-dynamic.zip'
58
68
69
+ - name : Hash Linux Build Artifacts for provenance
70
+ if : runner.os == 'Linux'
71
+ shell : bash
72
+ id : hash-linux
73
+ run : |
74
+ echo "hashes-linux=$(sha256sum linux-gcc-x64-static.zip linux-gcc-x64-dynamic.zip | base64 -w0)" >> "$GITHUB_OUTPUT"
59
75
60
76
- name : Upload Linux Build Artifacts
61
77
if : runner.os == 'Linux'
@@ -118,6 +134,13 @@ runs:
118
134
type : ' zip'
119
135
filename : ' windows-msvc-x64-dynamic-debug.zip'
120
136
137
+ - name : Hash Windows Build Artifacts for provenance
138
+ if : runner.os == 'Windows'
139
+ shell : bash
140
+ id : hash-windows
141
+ run : |
142
+ echo "hashes-windows=$(sha256sum windows-msvc-x64-static.zip windows-msvc-x64-dynamic.zip windows-msvc-x64-static-debug.zip windows-msvc-x64-dynamic-debug.zip | base64 -w0)" >> "$GITHUB_OUTPUT"
143
+
121
144
- name : Upload Windows Build Artifacts
122
145
if : runner.os == 'Windows'
123
146
shell : bash
@@ -157,6 +180,13 @@ runs:
157
180
type : ' zip'
158
181
filename : ' mac-clang-x64-dynamic.zip'
159
182
183
+ - name : Hash Mac Build Artifacts for provenance
184
+ if : runner.os == 'macOS'
185
+ shell : bash
186
+ id : hash-macos
187
+ run : |
188
+ echo "hashes-macos=$(sha256sum mac-clang-x64-static.zip mac-clang-x64-dynamic.zip | base64 -w0)" >> "$GITHUB_OUTPUT"
189
+
160
190
- name : Upload Mac Build Artifacts
161
191
if : runner.os == 'macOS'
162
192
shell : bash
0 commit comments