diff options
| author | 2026-01-13 14:01:30 +0800 | |
|---|---|---|
| committer | 2026-01-13 14:01:30 +0800 | |
| commit | 29faaab207d34043d964b1e1cebbdc969a490461 (patch) | |
| tree | 0e6e56f480a60f6003997c1223a301b32819f60c /.github/workflows | |
| parent | 1fabad025598451728b7c943f357035d7c683f1d (diff) | |
| download | DropOut-29faaab207d34043d964b1e1cebbdc969a490461.tar.gz DropOut-29faaab207d34043d964b1e1cebbdc969a490461.zip | |
feat: Update macOS build configuration to support multiple OS versions and allow cross-compilation
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/release.yml | 8 |
1 files changed, 7 insertions, 1 deletions
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 |