| 1 | name: Build signed release platforms for local macOS assembly |
| 2 | on: |
| 3 | workflow_dispatch: |
| 4 | inputs: |
| 5 | ref: |
| 6 | description: Exact versioned source commit SHA (same as the locally notarized macOS build) |
| 7 | required: true |
| 8 | type: string |
| 9 | permissions: |
| 10 | contents: read |
| 11 | concurrency: |
| 12 | group: cage-local-assembly-platforms |
| 13 | cancel-in-progress: false |
| 14 | jobs: |
| 15 | validate: |
| 16 | if: github.repository == 'Lee-xeo/Claude-Cage' && github.ref == 'refs/heads/main' |
| 17 | runs-on: ubuntu-24.04 |
| 18 | steps: |
| 19 | - name: Require an immutable build source |
| 20 | env: |
| 21 | BUILD_REF: ${{ inputs.ref }} |
| 22 | run: '[[ "$BUILD_REF" =~ ^[0-9a-f]{40}$ ]]' |
| 23 | - uses: actions/checkout@v4 |
| 24 | with: |
| 25 | ref: ${{ inputs.ref }} |
| 26 | persist-credentials: false |
| 27 | - uses: actions/setup-node@v4 |
| 28 | with: |
| 29 | node-version: 24 |
| 30 | - run: node scripts/check-version.mjs |
| 31 | windows: |
| 32 | needs: validate |
| 33 | if: github.repository == 'Lee-xeo/Claude-Cage' && github.ref == 'refs/heads/main' |
| 34 | uses: ./.github/workflows/windows-build.yml |
| 35 | secrets: inherit |
| 36 | with: |
| 37 | ref: ${{ inputs.ref }} |
| 38 | release: true |
| 39 | artifact_name: release-windows |
| 40 | linux: |
| 41 | needs: validate |
| 42 | if: github.repository == 'Lee-xeo/Claude-Cage' && github.ref == 'refs/heads/main' |
| 43 | uses: ./.github/workflows/linux-build.yml |
| 44 | with: |
| 45 | ref: ${{ inputs.ref }} |
| 46 | release: true |
| 47 | artifact_name: release-linux |