diff --git a/.github/workflows/llvmdev_build.yml b/.github/workflows/llvmdev_build.yml index 8c55e0765..360f45e35 100644 --- a/.github/workflows/llvmdev_build.yml +++ b/.github/workflows/llvmdev_build.yml @@ -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: diff --git a/buildscripts/github/MacOSX10.10.sdk.checksum b/buildscripts/github/MacOSX10.10.sdk.checksum new file mode 100644 index 000000000..a4fdcba00 --- /dev/null +++ b/buildscripts/github/MacOSX10.10.sdk.checksum @@ -0,0 +1 @@ +3839b875df1f2bc98893b8502da456cc0b022c4666bc6b7eb5764a5f915a9b00 MacOSX10.10.sdk.tar.xz diff --git a/buildscripts/github/llvmdev_evaluate.py b/buildscripts/github/llvmdev_evaluate.py index 2c3c36def..d7179b35c 100755 --- a/buildscripts/github/llvmdev_evaluate.py +++ b/buildscripts/github/llvmdev_evaluate.py @@ -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( diff --git a/buildscripts/github/setup_platform.sh b/buildscripts/github/setup_platform.sh new file mode 100644 index 000000000..e6f72631a --- /dev/null +++ b/buildscripts/github/setup_platform.sh @@ -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}" \ No newline at end of file diff --git a/conda-recipes/llvmdev/conda_build_config.yaml b/conda-recipes/llvmdev/conda_build_config.yaml index 21de5b35f..dd9956a6b 100644 --- a/conda-recipes/llvmdev/conda_build_config.yaml +++ b/conda-recipes/llvmdev/conda_build_config.yaml @@ -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] \ No newline at end of file diff --git a/conda-recipes/llvmdev_for_wheel/conda_build_config.yaml b/conda-recipes/llvmdev_for_wheel/conda_build_config.yaml index 078468e31..d1ca3a9f6 100644 --- a/conda-recipes/llvmdev_for_wheel/conda_build_config.yaml +++ b/conda-recipes/llvmdev_for_wheel/conda_build_config.yaml @@ -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]