Skip to content

Commit

Permalink
Hard-code the deployment target
Browse files Browse the repository at this point in the history
  • Loading branch information
sjperkins committed Jan 17, 2025
1 parent f283df4 commit 3ce610a
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,13 @@ jobs:
- os: macos-13
os_short: macos
arch: "x86_64"
deployment_target: "13.0"
triplet: "x64-osx-dynamic-cxx17-abi1-rel"
extra_build: "macosx_x86_64"
- os: macos-14
os_short: macos
arch: "arm64"
deployment_target: "14.0"
triplet: "arm64-osx-dynamic-cxx17-abi1-rel"
extra_build: "macosx_arm64"
steps:
Expand All @@ -145,11 +147,8 @@ jobs:
- name: Set MACOSX_DEPLOYMENT_TARGET
if: ${{ matrix.os_short == 'macos'}}
run: |
SDK_VERSION=$(xcrun --sdk macosx --show-sdk-version 2>/dev/null)
MAJOR_VERSION=$(echo $SDK_VERSION | cut -d '.' -f 1)
MACOSX_DEPLOYMENT_TARGET="${MAJOR_VERSION}.0"
echo "MACOS_DEPLOYMENT_TARGET=$MACOSX_DEPLOYMENT_TARGET"
echo "MACOSX_DEPLOYMENT_TARGET=$MACOSX_DEPLOYMENT_TARGET" >> $GITHUB_ENV
echo "MACOSX_DEPLOYMENT_TARGET=${{ matrix.deployment_target }}"
echo "MACOSX_DEPLOYMENT_TARGET=${{ matrix.deployment_target }}" >> $GITHUB_ENV
- name: Set Common Build Environment Variable
env:
Expand Down

0 comments on commit 3ce610a

Please sign in to comment.