From 7749992932a636b363920887f9777501f1c43173 Mon Sep 17 00:00:00 2001 From: danemadsen Date: Thu, 15 Aug 2024 15:08:33 +1000 Subject: [PATCH] sign --- .github/workflows/build-macos.yml | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/.github/workflows/build-macos.yml b/.github/workflows/build-macos.yml index 37807ae..388afa6 100644 --- a/.github/workflows/build-macos.yml +++ b/.github/workflows/build-macos.yml @@ -40,21 +40,6 @@ jobs: - name: Build run: cmake --build build --config Release -- -j${{ env.CPU_CORES }} - - name: Install Apple Certificate - uses: apple-actions/import-codesign-certs@v1 - with: - p12-file-base64: ${{ secrets.APPLE_CERTIFICATE_P12 }} - p12-password: ${{ secrets.APPLE_PASSWORD }} - - - name: Install the provisioning profile - run: | - mkdir -p ~/Library/Developer/Xcode/Provisioning\ Profiles - echo "${{ secrets.APPLE_PROVISION_PROFILE }}" | base64 --decode > ~/Library/Developer/Xcode/Provisioning\ Profiles/Github_Actions.provisionprofile - - - name: Code Sign ${{ matrix.os == 'macos-13' && 'x86_64' || 'arm64' }} Libraries - run: | - codesign --deep --force --verbose --options runtime --timestamp --sign "${{ secrets.APPLE_DEVELOPER_ID_APPLICATION }}" lib/libbabylon.dylib - - name: Upload Build Artifacts uses: actions/upload-artifact@v3 with: @@ -101,6 +86,10 @@ jobs: mkdir -p ~/Library/Developer/Xcode/Provisioning\ Profiles echo "${{ secrets.APPLE_PROVISION_PROFILE }}" | base64 --decode > ~/Library/Developer/Xcode/Provisioning\ Profiles/Github_Actions.provisionprofile + - name: Code Sign Universal Libraries + run: | + codesign --deep --force --verbose --options runtime --timestamp --sign "${{ secrets.APPLE_DEVELOPER_ID_APPLICATION }}" universal/lib/libbabylon.dylib + - name: Compress Universal dylibs run: ditto -c -k --sequesterRsrc "universal/lib/libbabylon.dylib" "babylon.zip"