From 29faaab207d34043d964b1e1cebbdc969a490461 Mon Sep 17 00:00:00 2001 From: HsiangNianian Date: Tue, 13 Jan 2026 14:01:30 +0800 Subject: feat: Update macOS build configuration to support multiple OS versions and allow cross-compilation --- .github/workflows/release.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to '.github/workflows/release.yml') diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 89d39f9..37eabcd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -75,15 +75,17 @@ jobs: build-macos: name: MacOS (${{ matrix.target }}) - runs-on: macos-latest + runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: include: - target: x86_64-apple-darwin arch_name: x86_64 + os: macos-13 - target: aarch64-apple-darwin arch_name: aarch64 + os: macos-latest steps: - uses: actions/checkout@v4 @@ -97,6 +99,10 @@ jobs: targets: ${{ matrix.target }} - name: Build + # We allow cross in case pkg-config gets confused by the explicit target triple on native host, + # but since we are on the correct hardware, the brew libraries will be correct. + env: + PKG_CONFIG_ALLOW_CROSS: 1 run: cargo build --release --target ${{ matrix.target }} - name: Archive -- cgit v1.2.3-70-g09d2