From 606019b86c63ce7c2b851e2b1de26e431c516146 Mon Sep 17 00:00:00 2001 From: t8y2 <1156263951@qq.com> Date: Thu, 7 May 2026 14:28:40 +0800 Subject: [PATCH] ci: use macos-15-intel runner for x86_64 macOS builds Replace cross-compilation approach with native Intel runner. macos-15-intel is GitHub's official replacement for the retired macos-13 runner, available for free on public repos until Aug 2027. --- .github/workflows/release.yml | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 797a086e2..282fb776b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,7 +16,7 @@ jobs: include: - platform: macos-latest target: aarch64-apple-darwin - - platform: macos-latest + - platform: macos-15-intel target: x86_64-apple-darwin - platform: ubuntu-22.04 target: x86_64-unknown-linux-gnu @@ -61,17 +61,7 @@ jobs: - name: Install system dependencies (macOS) if: startsWith(matrix.platform, 'macos') - run: | - if [ "${{ matrix.target }}" = "x86_64-apple-darwin" ]; then - arch -x86_64 /bin/bash -c ' - eval "$(/usr/local/bin/brew shellenv 2>/dev/null || /usr/local/Homebrew/bin/brew shellenv 2>/dev/null)" - brew install unixodbc - ' - echo "LIBRARY_PATH=/usr/local/lib" >> "$GITHUB_ENV" - echo "PKG_CONFIG_PATH=/usr/local/lib/pkgconfig" >> "$GITHUB_ENV" - else - brew install unixodbc - fi + run: brew install unixodbc - name: Install Apple certificate (macOS) if: startsWith(matrix.platform, 'macos')