File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -207,6 +207,7 @@ jobs:
207
207
ccache --zero-stats || true
208
208
209
209
- name : " Configure for codesigning"
210
+ id : codesigning
210
211
if : runner.os == 'macOS'
211
212
run : |
212
213
set -x
@@ -218,6 +219,7 @@ jobs:
218
219
219
220
# ----- Configure Keychain -----
220
221
KEYCHAIN_PATH=$RUNNER_TEMP/app-signing-${{ github.run_id }}.keychain-db
222
+ echo "KEYCHAIN_PATH=${KEYCHAIN_PATH}" >> $GITHUB_OUTPUT
221
223
security create-keychain -p "${{ secrets.MACOS_KEYCHAIN_PASSWORD }}" $KEYCHAIN_PATH
222
224
# Unlock it for 6 hours
223
225
security set-keychain-settings -lut 21600 $KEYCHAIN_PATH
@@ -681,6 +683,12 @@ jobs:
681
683
/bin/rm OpenStudioApplication-*${{ env.BINARY_EXT }} || true
682
684
ls OpenStudioApplication-* || true
683
685
686
+ - name : " Clean up codesigning"
687
+ if : always() && runner.os == 'macOS'
688
+ run : |
689
+ echo "Deleting keychain ${{ steps.codesigning.outputs.KEYCHAIN_PATH }}"
690
+ security delete-keychain ${{ steps.codesigning.outputs.KEYCHAIN_PATH }} || true
691
+ rm -f ${{ steps.codesigning.outputs.KEYCHAIN_PATH }}
684
692
685
693
test_package_macos :
686
694
name : Test Built Package on macOS
You can’t perform that action at this time.
0 commit comments