Skip to content

Commit b417abb

Browse files
committed
Build files for jazzy osx-arm64 2026-10-08-0208
1 parent 834fdc7 commit b417abb

4,418 files changed

Lines changed: 358087 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/workflows/build_jazzy_osx_arm64.yml‎

Lines changed: 9440 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
#!/usr/bin/env bash
2+
3+
4+
# Default values
5+
target=""
6+
7+
# Parse arguments
8+
while [[ "$#" -gt 0 ]]; do
9+
case $1 in
10+
--target) target="$2"; shift ;; # Capture value for --target
11+
*) echo "Unknown parameter passed: $1"; exit 1 ;; # Handle invalid options
12+
esac
13+
shift
14+
done
15+
16+
set -xeuo pipefail
17+
export PYTHONUNBUFFERED=1
18+
19+
# ROBOSTACK_DISTRO is set by the generated build workflow (tools/robostack.py gha).
20+
: "${ROBOSTACK_DISTRO:?ROBOSTACK_DISTRO is not set}"
21+
cd "distros/${ROBOSTACK_DISTRO}/work"
22+
export FEEDSTOCK_ROOT=`pwd`
23+
export "CONDA_BLD_PATH=$HOME/conda-bld/"
24+
25+
# git's background auto-maintenance can hold (and then delete) a lock file in a
26+
# cached source clone while rattler-build copies it, failing the build with
27+
# "FileSystem error: ... .git/objects/maintenance.lock does not exist".
28+
git config --global maintenance.auto false
29+
30+
curl -fsSL https://pixi.sh/install.sh | bash
31+
export PATH="$HOME/.pixi/bin:$PATH"
32+
33+
if [[ "$target" == *"osx"* ]]; then
34+
echo "osx"
35+
export PATH=$(echo $PATH | tr ":" "\n" | grep -v 'homebrew' | xargs | tr ' ' ':')
36+
fi
37+
38+
if [[ "$target" == "emscripten-wasm32" ]]; then
39+
extra_channel="-c https://repo.mamba.pm/emscripten-forge"
40+
cross_compile="--target-platform emscripten-wasm32 --test skip"
41+
42+
else
43+
extra_channel=""
44+
cross_compile=""
45+
fi
46+
47+
48+
for recipe in ${CURRENT_RECIPES[@]}; do
49+
# build-ci (tools/robostack.py) adds the variant config and the distro's channels.
50+
pixi run -v rs "${ROBOSTACK_DISTRO}" build-ci \
51+
--recipe ${FEEDSTOCK_ROOT}/recipes/${recipe} \
52+
${extra_channel} \
53+
--output-dir $CONDA_BLD_PATH \
54+
${cross_compile}
55+
# -m ${FEEDSTOCK_ROOT}/.ci_support/conda_forge_pinnings.yaml \
56+
57+
done
58+
59+
# Check if it build something, this is a hotfix for the skips inside additional_recipes
60+
shopt -s nullglob
61+
conda_packages=( "${CONDA_BLD_PATH}/${target}"*/*.conda )
62+
if (( ${#conda_packages[@]} > 0 )); then
63+
# Upload packages one-by-one; the upload task (tools/robostack.py) skips or overwrites
64+
# packages that already exist, depending on the upload target.
65+
for conda_package in "${conda_packages[@]}"; do
66+
pixi run rs "${ROBOSTACK_DISTRO}" upload "${conda_package}"
67+
done
68+
else
69+
echo "Warning: No .conda files found in ${CONDA_BLD_PATH}/${target}"
70+
echo "This might be due to all the packages being skipped"
71+
fi
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
2+
setlocal EnableExtensions EnableDelayedExpansion
3+
4+
set CONDA_BLD_PATH=C:\bld
5+
echo "PATH is %PATH%"
6+
7+
rmdir /Q/S C:\Strawberry\
8+
rmdir /Q/S "C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\"
9+
10+
:: ROBOSTACK_DISTRO is set by the generated build workflow (tools/robostack.py gha).
11+
cd distros\%ROBOSTACK_DISTRO%\work
12+
set "FEEDSTOCK_ROOT=%cd%"
13+
14+
mkdir %CONDA_BLD_PATH%
15+
16+
:: git's background auto-maintenance can hold (and then delete) a lock file in a
17+
:: cached source clone while rattler-build copies it, failing the build.
18+
git config --global maintenance.auto false
19+
20+
:: Enable long path names on Windows
21+
reg add HKLM\SYSTEM\CurrentControlSet\Control\FileSystem /v LongPathsEnabled /t REG_DWORD /d 1 /f
22+
23+
for %%X in (%CURRENT_RECIPES%) do (
24+
echo "BUILDING RECIPE %%X"
25+
cd %FEEDSTOCK_ROOT%\recipes\%%X\
26+
rem build-ci (tools/robostack.py) adds the variant config and the distro's channels.
27+
pixi run -v rs %ROBOSTACK_DISTRO% build-ci --recipe %FEEDSTOCK_ROOT%\recipes\%%X\ ^
28+
--output-dir %CONDA_BLD_PATH%
29+
30+
if errorlevel 1 exit 1
31+
rem -m %FEEDSTOCK_ROOT%\.ci_support\conda_forge_pinnings.yaml
32+
)
33+
34+
:: Check if .conda files exist in the win-64 directory
35+
if exist "%CONDA_BLD_PATH%\win-64\*.conda" (
36+
echo Found .conda files, starting upload...
37+
rem Upload packages one-by-one; the upload task (tools/robostack.py) skips or overwrites
38+
rem packages that already exist, depending on the upload target.
39+
for %%F in ("%CONDA_BLD_PATH%\win-64\*.conda") do (
40+
echo Uploading %%~fF
41+
pixi run rs %ROBOSTACK_DISTRO% upload "%%~fF"
42+
if errorlevel 1 exit 1
43+
)
44+
) else (
45+
echo Warning: No .conda files found in %CONDA_BLD_PATH%\win-64
46+
echo This might be due to all the packages being skipped
47+
)

0 commit comments

Comments
 (0)