Repository navigation
Build XCFramework #18
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build XCFramework | |
| on: | |
| workflow_dispatch: | |
| # Temporarily replaced with codesign test logic | |
| # TODO: Restore original build_xcframework workflow after codesign is verified | |
| # | |
| # Original jobs: | |
| # build_xcframework: | |
| # name: Build XCFrameworks | |
| # runs-on: macos-15 | |
| # env: | |
| # OPENSWIFTUI_OPENATTRIBUTESHIMS_ATTRIBUTEGRAPH: 1 | |
| # OPENSWIFTUI_USE_LOCAL_DEPS: 1 | |
| # GH_TOKEN: ${{ github.token }} | |
| # steps: | |
| # - uses: actions/checkout@v4 | |
| # - name: Build XCFrameworks | |
| # uses: ./.github/actions/build-xcframework | |
| # with: | |
| # signing-certificate-base64: ${{ inputs.signing-certificate-base64 || secrets.SIGNING_CERTIFICATE_BASE_64 }} | |
| # signing-certificate-password: ${{ inputs.signing-certificate-password || secrets.SIGNING_CERTIFICATE_PASSWORD }} | |
| # - name: Zip XCFrameworks | |
| # run: cd build && zip -ry xcframeworks.zip *.xcframework | |
| # - name: Upload XCFrameworks | |
| # uses: actions/upload-artifact@v7 | |
| # with: | |
| # path: build/xcframeworks.zip | |
| # archive: false | |
| jobs: | |
| test_codesign: | |
| name: Test Code Sign XCFramework | |
| runs-on: macos-15 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Download OpenCoreGraphicsShims.xcframework | |
| run: | | |
| curl -L -o OpenCoreGraphicsShims.xcframework.zip \ | |
| https://github.com/OpenSwiftUIProject/OpenSwiftUI/releases/download/0.17.0/OpenCoreGraphicsShims.xcframework.zip | |
| unzip OpenCoreGraphicsShims.xcframework.zip | |
| echo "Downloaded xcframework:" | |
| ls -la OpenCoreGraphicsShims.xcframework/ | |
| - name: Verify unsigned | |
| run: | | |
| echo "Before signing:" | |
| codesign -dv OpenCoreGraphicsShims.xcframework 2>&1 || echo "(not signed)" | |
| - name: Code sign | |
| uses: ./.github/actions/codesign-xcframework | |
| with: | |
| signing-certificate-base64: ${{ secrets.SIGNING_CERTIFICATE_BASE_64 }} | |
| signing-certificate-password: ${{ secrets.SIGNING_CERTIFICATE_PASSWORD }} | |
| xcframework-paths: OpenCoreGraphicsShims.xcframework | |
| - name: Verify signed | |
| run: | | |
| echo "After signing:" | |
| codesign -dv --verbose=4 OpenCoreGraphicsShims.xcframework | |
| - name: Upload signed xcframework | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: OpenCoreGraphicsShims-signed | |
| path: OpenCoreGraphicsShims.xcframework |