Skip to content

Commit

Permalink
support TARGET_ARCH for local osx build
Browse files Browse the repository at this point in the history
  • Loading branch information
hadim committed Jan 14, 2025
1 parent 4624282 commit 5c6baab
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .scripts/run_osx_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,21 @@ echo ""

( endgroup "Configuring conda" ) 2> /dev/null

# Set the target arch
# check TARGET_ARCH IS SET AND USE IT, otherwise fallback to auto detection
if [[ -z "${TARGET_ARCH}" ]]; then
if [[ "$(uname -m)" == "arm64" ]]; then
TARGET_ARCH="arm64"
else
TARGET_ARCH="64"
fi
else
echo "TARGET_ARCH is set to ${TARGET_ARCH}"
fi

# We just want to build all of the recipes.
echo "Building all recipes"
python .ci_support/build_all.py
python .ci_support/build_all.py --arch ${TARGET_ARCH}

( startgroup "Inspecting artifacts" ) 2> /dev/null
# inspect_artifacts was only added in conda-forge-ci-setup 4.6.0; --all-packages in 4.9.3
Expand Down

0 comments on commit 5c6baab

Please sign in to comment.