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 Patchwork for macOS | ||
| on: | ||
| workflow_call: | ||
| env: | ||
| LLVM_PATH: /opt/homebrew/opt/llvm/bin | ||
| jobs: | ||
| macos: | ||
| runs-on: "macos-14" | ||
| name: 📐 Build ${{ matrix.arch }} | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| arch: ["x86_64-apple-darwin"] | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| # pull the tags so Just can sign the version | ||
| run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* | ||
| - name: Restore Cache | ||
| uses: Swatinem/rust-cache@v2 | ||
| with: | ||
| prefix-key: patchwork_rust_plugin_macos-${{ matrix.arch }} | ||
| - name: Build | ||
| uses: ./.github/actions/build-plugin | ||
| with: | ||
| arch: ${{ matrix.arch }} | ||
| - name: Mac Sign | ||
| uses: ./.github/actions/macos-sign | ||
| with: | ||
| FRAMEWORK_PATH: ${{ github.workspace }}/build/patchwork/bin/libpatchwork_rust_core.macos.framework | ||
| SIGN_FLAGS: "--deep" | ||
| APPLE_CERT_BASE64: ${{ secrets.APPLE_CERT_BASE64 }} | ||
| APPLE_CERT_PASSWORD: ${{ secrets.APPLE_CERT_PASSWORD }} | ||
| APPLE_DEV_PASSWORD: ${{ secrets.APPLE_DEV_PASSWORD }} | ||
| APPLE_DEV_ID: ${{ secrets.APPLE_DEV_ID }} | ||
| APPLE_DEV_TEAM_ID: ${{ secrets.APPLE_DEV_TEAM_ID }} | ||
| APPLE_DEV_APP_ID: ${{ secrets.APPLE_DEV_APP_ID }} | ||
| - name: Upload | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: patchwork-build-macos-${{ matrix.arch }} | ||
| path: | | ||
| build/patchwork/* | ||
| if-no-files-found: error | ||