Skip to content

Commit ab2c180

Browse files
committed
Add codesign step to GHA CI script.
1 parent ca5a1f7 commit ab2c180

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

.github/workflows/cppcmake.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,9 @@ jobs:
115115
${{ github.event.inputs.cmakeextra }}
116116
cmake --build examples/build --target install --config Release -j
117117
./examples/build/install/bin/HandleMetaData
118-
119-
- name: package
118+
119+
- name: package (!macOS)
120+
if: matrix.config.os != 'macOS-latest'
120121
run: |
121122
echo $GITHUB_REF
122123
cmake --build build --target package --config Release -j
@@ -135,6 +136,19 @@ jobs:
135136
cmake -E remove_directory package/_CPack_Packages
136137
cp testing/lslcfgs/default.cfg .
137138
139+
- name: Codesign (macOS)
140+
if: matrix.config.os == 'macOS-latest'
141+
run: |
142+
codesign -vvv --force --deep --sign "$APPLE_CODE_SIGN_IDENTITY_APP" \
143+
--entitlements lsl.entitlements --options runtime \
144+
install/Frameworks/lsl.framework/Versions/A/lsl
145+
codesign -vvv --force --deep --sign "$APPLE_CODE_SIGN_IDENTITY_APP" \
146+
--entitlements lsl.entitlements --options runtime \
147+
install/Frameworks/lsl.framework
148+
echo "✅ Verifying binary signatures in install target..."
149+
codesign -vvv --verify --deep --strict install/Frameworks/lsl.framework/Versions/A/lsl
150+
codesign -vvv --verify --deep --strict install/Frameworks/lsl.framework
151+
138152
- name: package and notarize (macOS)
139153
if: matrix.config.os == 'macOS-latest'
140154
env:

0 commit comments

Comments
 (0)