Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/build-pg-extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-php-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-service.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/mirror.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down
3 changes: 2 additions & 1 deletion scripts/lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down