From 5f75cfd691628567698f91cf5b5a28e31b199815 Mon Sep 17 00:00:00 2001 From: Adrian Castro <22133246+castdrian@users.noreply.github.com> Date: Sat, 1 Aug 2026 23:43:11 +0200 Subject: [PATCH] ci: verify release builds on fork runners --- .github/workflows/release.yml | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fb1b313f..efddc626 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -127,6 +127,7 @@ jobs: echo "tag=$tag" >> "$GITHUB_OUTPUT" - name: Import signing certificate into a temporary keychain + if: github.repository == 'bryanthaboi/gen1recomp' run: | set -euo pipefail KEYCHAIN_PATH="$RUNNER_TEMP/pokemon-signing.keychain-db" @@ -182,13 +183,17 @@ jobs: brew list xcbeautify >/dev/null 2>&1 || brew install xcbeautify - name: Build iOS + env: + CANONICAL_REPOSITORY: ${{ github.repository == 'bryanthaboi/gen1recomp' }} run: | set -euo pipefail - # Device Release IPA; signs with the Apple Development identity on - # the runner (auto team detection). Users on other Apple IDs still - # re-sign or build via docs/ios-install.md. - scripts/build_ios.sh --fetch --device --release \ - --version "${{ steps.ver.outputs.version }}" + if [ "$CANONICAL_REPOSITORY" = true ]; then + scripts/build_ios.sh --fetch --device --release \ + --version "${{ steps.ver.outputs.version }}" + else + scripts/build_ios.sh --fetch --release \ + --version "${{ steps.ver.outputs.version }}" + fi - name: Build Anbernic RG34XXSP port run: | @@ -198,6 +203,7 @@ jobs: ./build-rg34xxsp.sh --version "${{ steps.ver.outputs.version }}" - name: Notarize & staple macOS app + if: github.repository == 'bryanthaboi/gen1recomp' run: | set -euo pipefail ci_dir="${POKEMON_CI_DIR:-$HOME/.config/pokemon-ci}" @@ -232,6 +238,7 @@ jobs: echo "Notarized + stapled ✓" - name: Stage release assets + if: github.repository == 'bryanthaboi/gen1recomp' id: assets run: | set -euo pipefail @@ -271,6 +278,7 @@ jobs: cat "$outdir/sha256sums.txt" - name: Publish GitHub Release + if: github.repository == 'bryanthaboi/gen1recomp' env: GH_TOKEN: ${{ github.token }} run: | @@ -376,6 +384,6 @@ jobs: echo "Published release $tag" - name: Clean up signing keychain - if: always() + if: ${{ always() && github.repository == 'bryanthaboi/gen1recomp' }} run: | security delete-keychain "$RUNNER_TEMP/pokemon-signing.keychain-db" 2>/dev/null || true