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.
This commit is contained in:
t8y2
2026-05-07 14:28:40 +08:00
parent 63b7458347
commit 606019b86c
+2 -12
View File
@@ -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')