Skip to content

Commit

Permalink
Build: Mac: Keep the signing-related keychain unlocked
Browse files Browse the repository at this point in the history
This fixes hanging Mac build runs in CI which got stuck as they required
interactive unlocking of the keychain.
This issue only became appareant after the switch to universal builds as
that made the build take longer than the re-lock interval.

Fixes: #2925
  • Loading branch information
hoffie committed Oct 19, 2022
1 parent fa07457 commit 10e3a2d
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 10e3a2d

Please sign in to comment.