Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix llvmdev osx64 conda builder #1167

Open
wants to merge 14 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/workflows/llvmdev_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,11 @@ jobs:
- name: Clone repository
uses: actions/checkout@v4

- name: Setup platform-specific requirements
run: |
chmod +x ./buildscripts/github/setup_platform.sh
source ./buildscripts/github/setup_platform.sh "${{ matrix.platform }}"

- name: Setup Miniconda
uses: conda-incubator/setup-miniconda@v3
with:
Expand Down
1 change: 1 addition & 0 deletions buildscripts/github/MacOSX10.10.sdk.checksum
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3839b875df1f2bc98893b8502da456cc0b022c4666bc6b7eb5764a5f915a9b00 MacOSX10.10.sdk.tar.xz
10 changes: 10 additions & 0 deletions buildscripts/github/llvmdev_evaluate.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,16 @@
"platform": "win-64",
"recipe": "llvmdev_for_wheel",
},
{
"runner": runner_mapping["osx-64"],
"platform": "osx-64",
"recipe": "llvmdev",
},
{
"runner": runner_mapping["osx-64"],
"platform": "osx-64",
"recipe": "llvmdev_for_wheel",
},
]

print(
Expand Down
34 changes: 34 additions & 0 deletions buildscripts/github/setup_platform.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
#!/bin/bash

set -x

PLATFORM=$1

echo "Setting up platform-specific requirements for ${PLATFORM}"

case "${PLATFORM}" in
"osx-64")
echo "Setting up macOS SDK for osx-64 build"
sdk_dir="buildscripts/github"
mkdir -p "${sdk_dir}"

# Download SDK
echo "Downloading MacOSX10.10.sdk.tar.xz"
wget -q https://github.com/phracker/MacOSX-SDKs/releases/download/11.3/MacOSX10.10.sdk.tar.xz

# Verify checksum
echo "Verifying SDK checksum"
shasum -c "${sdk_dir}/MacOSX10.10.sdk.checksum"

# Extract SDK to /opt
echo "Extracting SDK to /opt"
sudo mkdir -p /opt
sudo tar -xf MacOSX10.10.sdk.tar.xz -C /opt
echo "macOS SDK setup complete"
;;
*)
echo "No specific setup required for platform: ${PLATFORM}"
;;
esac

echo "Platform setup complete for ${PLATFORM}"
13 changes: 11 additions & 2 deletions conda-recipes/llvmdev/conda_build_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,14 @@ c_compiler: # [win]
cxx_compiler: # [win]
- vs2019 # [win]

MACOSX_SDK_VERSION: # [osx and x86_64]
- 10.12 # [osx and x86_64]
MACOSX_DEPLOYMENT_TARGET:
- 10.10 # [osx and x86_64]

macos_machine:
- x86_64-apple-darwin13.4.0 # [osx and x86_64]

macos_min_version:
- 10.10 # [osx and x86_64]

CONDA_BUILD_SYSROOT:
- /opt/MacOSX10.10.sdk # [osx and x86_64]
13 changes: 11 additions & 2 deletions conda-recipes/llvmdev_for_wheel/conda_build_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,14 @@ c_compiler: # [win]
cxx_compiler: # [win]
- vs2019 # [win]

MACOSX_SDK_VERSION: # [osx and x86_64]
- 10.12 # [osx and x86_64]
MACOSX_DEPLOYMENT_TARGET:
- 10.10 # [osx and x86_64]

macos_machine:
- x86_64-apple-darwin13.4.0 # [osx and x86_64]

macos_min_version:
- 10.10 # [osx and x86_64]

CONDA_BUILD_SYSROOT:
- /opt/MacOSX10.10.sdk # [osx and x86_64]
Loading