Skip to content

Commit

Permalink
Merge pull request #2927 from hoffie/autobuild/fix-mac-build-hang-key…
Browse files Browse the repository at this point in the history
…chain-relock

Build: Mac: Keep the signing-related keychain unlocked
  • Loading branch information
hoffie authored Oct 20, 2022
2 parents 07ab3fb + 10e3a2d commit 86ce08a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/autobuild/mac.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ prepare_signing() {
# Set up a keychain for the build:
security create-keychain -p "${KEYCHAIN_PASSWORD}" build.keychain
security default-keychain -s build.keychain
# Remove default re-lock timeout to avoid codesign hangs:
security set-keychain-settings build.keychain
security unlock-keychain -p "${KEYCHAIN_PASSWORD}" build.keychain
security import certificate.p12 -k build.keychain -P "${MACOS_CERTIFICATE_PWD}" -T /usr/bin/codesign
security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k "${KEYCHAIN_PASSWORD}" build.keychain
Expand Down

0 comments on commit 86ce08a

Please sign in to comment.