From 1ddb243f65ca58ab14f2161b0bf268be09cf9520 Mon Sep 17 00:00:00 2001 From: Lukas Frey Date: Sat, 28 Nov 2026 20:13:26 +0100 Subject: [PATCH] fix(release): test macOS packages on macos-15, fetch four-part MySQL versions GitHub retired the macos-14 image, so every macOS smoke test was cancelled and nothing got published. MySQL 8.4.13.1 was looked up in MySQL-8.4.13 instead of MySQL-8.4; a failed mirror download now fails its own step. --- .github/workflows/build-pg-extension.yml | 4 ++-- .github/workflows/build-php-macos.yml | 4 ++-- .github/workflows/build-service.yml | 4 ++-- .github/workflows/mirror.yml | 2 ++ scripts/lib.sh | 3 ++- 5 files changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build-pg-extension.yml b/.github/workflows/build-pg-extension.yml index bbd5765..a7b1a9d 100644 --- a/.github/workflows/build-pg-extension.yml +++ b/.github/workflows/build-pg-extension.yml @@ -140,12 +140,12 @@ jobs: path: ${{ steps.config.outputs.asset }} retention-days: 7 - # A clean runner, as for the services (build-service.yml): on macOS the oldest Apple Silicon + # A clean runner, as for the services (build-service.yml): on macOS a fresh # image with Homebrew moved away, on Linux a fresh one without the build's tools. test: name: run ${{ inputs.package }} ${{ inputs.version }} ${{ inputs.platform }} needs: build - runs-on: ${{ fromJSON('{"windows-x64":"windows-2022","macos-arm64":"macos-14","linux-x64":"ubuntu-24.04","linux-arm64":"ubuntu-24.04-arm"}')[inputs.platform] }} + runs-on: ${{ fromJSON('{"windows-x64":"windows-2022","macos-arm64":"macos-15","linux-x64":"ubuntu-24.04","linux-arm64":"ubuntu-24.04-arm"}')[inputs.platform] }} timeout-minutes: 20 env: ASSET: ${{ needs.build.outputs.asset }} diff --git a/.github/workflows/build-php-macos.yml b/.github/workflows/build-php-macos.yml index 8918e3b..2e2b819 100644 --- a/.github/workflows/build-php-macos.yml +++ b/.github/workflows/build-php-macos.yml @@ -119,12 +119,12 @@ jobs: - if: failure() && inputs.optional run: echo "::warning::$PKG for PHP $VERSION (a release candidate) didn't build; the next release run tries again" - # The oldest Apple Silicon runner with Homebrew moved away: closest to a user's Mac. + # A fresh runner with Homebrew moved away: closest to a user's Mac. portable: name: run ${{ inputs.package }} ${{ inputs.version }} without Homebrew needs: build if: needs.build.outputs.ok == 'true' - runs-on: macos-14 + runs-on: macos-15 continue-on-error: ${{ inputs.optional == true }} outputs: ok: ${{ steps.done.outputs.ok }} diff --git a/.github/workflows/build-service.yml b/.github/workflows/build-service.yml index d00fcd5..b519b59 100644 --- a/.github/workflows/build-service.yml +++ b/.github/workflows/build-service.yml @@ -174,13 +174,13 @@ jobs: path: sources/* retention-days: 7 - # A clean runner: on macOS the oldest Apple Silicon image with Homebrew moved away (closest to + # A clean runner: on macOS a fresh image with Homebrew moved away (closest to # a user's Mac); on Windows without MSYS2 runtimes on PATH, so only the bundled DLLs are used; # on Linux a fresh one of the architecture, without the build's -dev packages. test: name: run ${{ inputs.package }} ${{ inputs.version }} ${{ inputs.platform }} needs: build - runs-on: ${{ fromJSON('{"windows-x64":"windows-2022","macos-arm64":"macos-14","linux-x64":"ubuntu-24.04","linux-arm64":"ubuntu-24.04-arm"}')[inputs.platform] }} + runs-on: ${{ fromJSON('{"windows-x64":"windows-2022","macos-arm64":"macos-15","linux-x64":"ubuntu-24.04","linux-arm64":"ubuntu-24.04-arm"}')[inputs.platform] }} timeout-minutes: 20 env: ASSET: ${{ needs.build.outputs.asset }} diff --git a/.github/workflows/mirror.yml b/.github/workflows/mirror.yml index 32c5acb..fed082f 100644 --- a/.github/workflows/mirror.yml +++ b/.github/workflows/mirror.yml @@ -76,6 +76,7 @@ jobs: - name: Download and verify env: ASSET: ${{ steps.config.outputs.asset }} + shell: bash # with pipefail: a failed download fails the step, not only the test after it run: | bash "packages/$PKG/mirror.sh" "$VERSION" "$PLATFORM" "$ASSET" | tee -a "$GITHUB_STEP_SUMMARY" echo "$(sha256sum "$ASSET") ($(du -h "$ASSET" | cut -f1))" | tee -a "$GITHUB_STEP_SUMMARY" @@ -109,6 +110,7 @@ jobs: run: sudo mv /opt/homebrew /opt/homebrew.hidden - name: Portability if: runner.os == 'Linux' + shell: bash run: | mkdir pkg && tar -C pkg -xzf "$ASSET" bash scripts/verify-linux.sh pkg | tee -a "$GITHUB_STEP_SUMMARY" diff --git a/scripts/lib.sh b/scripts/lib.sh index 25a0090..f968337 100644 --- a/scripts/lib.sh +++ b/scripts/lib.sh @@ -56,7 +56,8 @@ mariadb_sha256() { # releases, with an MD5 we check) or the archives (older ones, no checksum: the binaries' Oracle # code signatures are checked by the smoke test instead). mysql_fetch() { - local line="${1%.*}" url + local line url + line="$(cut -d. -f1,2 <<<"$1")" # 8.4.13.1 → 8.4 for url in "https://cdn.mysql.com/Downloads/MySQL-$line/$2" \ "https://cdn.mysql.com/archives/mysql-$line/$2" \ "https://downloads.mysql.com/archives/get/p/23/file/$2"; do