Skip to content

Commit

Permalink
sign
Browse files Browse the repository at this point in the history
  • Loading branch information
danemadsen committed Aug 15, 2024
1 parent 73653dc commit 7749992
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions .github/workflows/build-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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"

Expand Down

0 comments on commit 7749992

Please sign in to comment.