3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-07-15 03:25:43 +00:00

Pin macOS wheel target to 13.0 in release and nightly workflows (#10054)

Wheels started inheriting `macosx_15_0` tags because macOS jobs run on
newer runners and no deployment target was pinned. That blocks wheel
installation on macOS 13/14 hosts and forces source builds.

- **macOS deployment target pinning**
- Added `MACOSX_DEPLOYMENT_TARGET: "13.0"` to both macOS build jobs
(`x64`, `arm64`) in:
    - `.github/workflows/release.yml`
    - `.github/workflows/nightly.yml`

- **Stable macOS artifact OS metadata**
- Updated macOS `mk_unix_dist.py` invocations to pass `--os=osx-13.0` in
both workflows, so artifact metadata stays aligned with the intended
minimum macOS compatibility used for Python wheel tagging.

```yaml
mac-build-x64:
  runs-on: macos-15
  env:
    MACOSX_DEPLOYMENT_TARGET: "13.0"
  steps:
    - name: Build
      run: python scripts/mk_unix_dist.py --dotnet-key=$GITHUB_WORKSPACE/resources/z3.snk --arch=x64 --os=osx-13.0
```

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
This commit is contained in:
Copilot 2026-07-06 17:55:01 -07:00 committed by GitHub
parent d1aaae6856
commit d9d3be959c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 12 additions and 4 deletions

View file

@ -33,6 +33,8 @@ jobs:
name: "Mac Build x64"
runs-on: macos-latest
timeout-minutes: 90
env:
MACOSX_DEPLOYMENT_TARGET: "13.0"
steps:
- name: Checkout code
uses: actions/checkout@v7.0.0
@ -43,7 +45,7 @@ jobs:
python-version: '3.x'
- name: Build
run: python scripts/mk_unix_dist.py --dotnet-key=$GITHUB_WORKSPACE/resources/z3.snk --arch=x64
run: python scripts/mk_unix_dist.py --dotnet-key=$GITHUB_WORKSPACE/resources/z3.snk --arch=x64 --os=osx-13.0
- name: Validate libz3.dylib and z3 architecture (must be x86_64)
run: |
@ -69,6 +71,8 @@ jobs:
name: "Mac ARM64 Build"
runs-on: macos-latest
timeout-minutes: 90
env:
MACOSX_DEPLOYMENT_TARGET: "13.0"
steps:
- name: Checkout code
uses: actions/checkout@v7.0.0
@ -79,7 +83,7 @@ jobs:
python-version: '3.x'
- name: Build
run: python scripts/mk_unix_dist.py --dotnet-key=$GITHUB_WORKSPACE/resources/z3.snk --arch=arm64
run: python scripts/mk_unix_dist.py --dotnet-key=$GITHUB_WORKSPACE/resources/z3.snk --arch=arm64 --os=osx-13.0
- name: Validate libz3.dylib and z3 architecture (must be arm64)
run: |

View file

@ -34,6 +34,8 @@ jobs:
name: "Mac Build x64"
runs-on: macos-15
timeout-minutes: 90
env:
MACOSX_DEPLOYMENT_TARGET: "13.0"
steps:
- name: Checkout code
uses: actions/checkout@v7.0.0
@ -44,7 +46,7 @@ jobs:
python-version: '3.x'
- name: Build
run: python scripts/mk_unix_dist.py --dotnet-key=$GITHUB_WORKSPACE/resources/z3.snk --arch=x64
run: python scripts/mk_unix_dist.py --dotnet-key=$GITHUB_WORKSPACE/resources/z3.snk --arch=x64 --os=osx-13.0
- name: Validate libz3.dylib and z3 architecture (must be x86_64)
run: |
@ -76,6 +78,8 @@ jobs:
name: "Mac ARM64 Build"
runs-on: macos-15
timeout-minutes: 90
env:
MACOSX_DEPLOYMENT_TARGET: "13.0"
steps:
- name: Checkout code
uses: actions/checkout@v7.0.0
@ -86,7 +90,7 @@ jobs:
python-version: '3.x'
- name: Build
run: python scripts/mk_unix_dist.py --dotnet-key=$GITHUB_WORKSPACE/resources/z3.snk --arch=arm64
run: python scripts/mk_unix_dist.py --dotnet-key=$GITHUB_WORKSPACE/resources/z3.snk --arch=arm64 --os=osx-13.0
- name: Validate libz3.dylib and z3 architecture (must be arm64)
run: |