Skip to content

Commit 374ca18

Browse files
fix(ci): address codesigning (#185)
* fix(ci): address codesigning * avoid duplicate keychain creation
1 parent ab1fe80 commit 374ca18

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/build.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,12 @@ jobs:
406406
MACOS_CERTIFICATE: ${{ secrets.MACOS_CERTIFICATE }}
407407
MACOS_CERTIFICATE_PWD: ${{ secrets.MACOS_CERTIFICATE_PWD }}
408408
run: |
409+
echo $MACOS_CERTIFICATE | base64 --decode > certificate.p12
410+
security list-keychains | grep -q "build.keychain" || security create-keychain -p espressif build.keychain
411+
security default-keychain -s build.keychain
412+
security unlock-keychain -p espressif build.keychain
413+
security import certificate.p12 -k build.keychain -P $MACOS_CERTIFICATE_PWD -T /usr/bin/codesign
414+
security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k espressif build.keychain
409415
codesign --entitlements eim.entitlement --options runtime --force -s "ESPRESSIF SYSTEMS (SHANGHAI) CO., LTD. (QWXF6GB4AV)" release_cli/${{ matrix.package_name }}/offline_installer_builder -v
410416
codesign -v -vvv --deep release_cli/${{ matrix.package_name }}/offline_installer_builder
411417

0 commit comments

Comments
 (0)