Skip to content

Commit 506c76c

Browse files
committed
add osx and osx-arm64 support
1 parent 6cead8c commit 506c76c

File tree

2 files changed

+25
-120
lines changed

2 files changed

+25
-120
lines changed

.scripts/build_osx.sh

Lines changed: 12 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1,70 +1,22 @@
11
#!/bin/bash
22

33
set -x
4-
5-
export FEEDSTOCK_ROOT=`pwd`
6-
7-
echo -e "\n\nInstalling a fresh version of Miniforge."
8-
MINIFORGE_URL="https://github.com/conda-forge/miniforge/releases/latest/download"
9-
MINIFORGE_FILE="Mambaforge-MacOSX-x86_64.sh"
10-
curl -L -O --silent "${MINIFORGE_URL}/${MINIFORGE_FILE}"
11-
/bin/bash $MINIFORGE_FILE -b
12-
13-
echo -e "\n\nConfiguring conda."
14-
15-
source ${HOME}/mambaforge/etc/profile.d/conda.sh
16-
conda activate base
17-
18-
conda config --set remote_max_retries 5
19-
20-
echo -e "\n\nInstalling conda-forge-ci-setup=3 and conda-build."
21-
mamba install -n base --quiet --yes conda-forge-ci-setup=3 conda-build=3.27 pip boa quetz-client -c conda-forge
22-
234
set -e
245

25-
# echo -e "\n\nSetting up the condarc and mangling the compiler."
26-
# # setup_conda_rc ./ ./recipe ./.ci_support/${CONFIG}.yaml
27-
# # mangle_compiler ./ ./recipe .ci_support/${CONFIG}.yaml
28-
29-
# echo -e "\n\nMangling homebrew in the CI to avoid conflicts."
30-
# # /usr/bin/sudo mangle_homebrew
31-
# # /usr/bin/sudo -k
32-
33-
# echo -e "\n\nRunning the build setup script."
34-
# # source run_conda_forge_build_setup
35-
36-
export "CONDA_BLD_PATH=$CONDA_PREFIX/conda-bld/"
37-
38-
mkdir -p $CONDA_BLD_PATH
39-
conda index $CONDA_BLD_PATH
40-
conda config --set anaconda_upload yes
41-
conda config --set show_channel_urls true
42-
conda config --set auto_update_conda false
43-
conda config --set add_pip_as_python_dependency false
44-
45-
conda config --add channels conda-forge
46-
conda config --add channels robostack-staging
47-
conda config --add channels $CONDA_BLD_PATH
48-
# conda config --set channel_priority strict
49-
50-
# echo -e "\n\nMaking the build clobber file and running the build."
51-
# make_build_number ./ ./recipe ./.ci_support/${CONFIG}.yaml
6+
export FEEDSTOCK_ROOT=`pwd`
7+
export "CONDA_BLD_PATH=$HOME/conda-bld/"
528

53-
conda info
54-
conda config --show-sources
55-
conda list --show-channel-urls
9+
curl -fsSL https://pixi.sh/install.sh | bash
10+
export PATH="$HOME/.pixi/bin:$PATH"
5611

5712
for recipe in ${CURRENT_RECIPES[@]}; do
58-
cd ${FEEDSTOCK_ROOT}/recipes/${recipe}
59-
boa build . -m ${FEEDSTOCK_ROOT}/.ci_support/conda_forge_pinnings.yaml -m ${FEEDSTOCK_ROOT}/conda_build_config.yaml
60-
done
13+
pixi run rattler-build build \
14+
--recipe ${FEEDSTOCK_ROOT}/recipes/${recipe} \
15+
-m ${FEEDSTOCK_ROOT}/conda_build_config.yaml \
16+
-c robostack-jazzy -c conda-forge \
17+
--output-dir $CONDA_BLD_PATH
6118

62-
anaconda -t ${ANACONDA_API_TOKEN} upload ${CONDA_BLD_PATH}/osx-64/*.tar.bz2 --force
63-
# quetz-client "${QUETZ_URL}" ${CONDA_BLD_PATH} --force
64-
65-
# conda build ./recipe -m ./.ci_support/${CONFIG}.yaml --clobber-file ./.ci_support/clobber_${CONFIG}.yaml
19+
# -m ${FEEDSTOCK_ROOT}/.ci_support/conda_forge_pinnings.yaml \
20+
done
6621

67-
# if [[ "${UPLOAD_PACKAGES}" != "False" ]]; then
68-
# echo -e "\n\nUploading the packages."
69-
# upload_package --validate --feedstock-name="libsolv-feedstock" ./ ./recipe ./.ci_support/${CONFIG}.yaml
70-
# fi
22+
anaconda -t ${ANACONDA_API_TOKEN} upload ${CONDA_BLD_PATH}/osx-*/*.conda --force

.scripts/build_osx_arm64.sh

Lines changed: 13 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1,70 +1,23 @@
11
#!/bin/bash
22

33
set -x
4-
5-
export FEEDSTOCK_ROOT=`pwd`
6-
7-
echo -e "\n\nInstalling a fresh version of Miniforge."
8-
MINIFORGE_URL="https://github.com/conda-forge/miniforge/releases/latest/download"
9-
MINIFORGE_FILE="Mambaforge-MacOSX-arm64.sh"
10-
curl -L -O --silent "${MINIFORGE_URL}/${MINIFORGE_FILE}"
11-
/bin/bash $MINIFORGE_FILE -b
12-
13-
echo -e "\n\nConfiguring conda."
14-
15-
source ${HOME}/mambaforge/etc/profile.d/conda.sh
16-
conda activate base
17-
18-
conda config --set remote_max_retries 5
19-
20-
echo -e "\n\nInstalling conda-forge-ci-setup=3 and conda-build."
21-
mamba install -n base --quiet --yes conda-forge-ci-setup=3 conda-build=3.27 pip boa quetz-client -c conda-forge
22-
234
set -e
245

25-
# echo -e "\n\nSetting up the condarc and mangling the compiler."
26-
# # setup_conda_rc ./ ./recipe ./.ci_support/${CONFIG}.yaml
27-
# # mangle_compiler ./ ./recipe .ci_support/${CONFIG}.yaml
28-
29-
# echo -e "\n\nMangling homebrew in the CI to avoid conflicts."
30-
# # /usr/bin/sudo mangle_homebrew
31-
# # /usr/bin/sudo -k
32-
33-
# echo -e "\n\nRunning the build setup script."
34-
# # source run_conda_forge_build_setup
35-
36-
export "CONDA_BLD_PATH=$CONDA_PREFIX/conda-bld/"
37-
38-
mkdir -p $CONDA_BLD_PATH
39-
conda index $CONDA_BLD_PATH
40-
conda config --set anaconda_upload yes
41-
conda config --set show_channel_urls true
42-
conda config --set auto_update_conda false
43-
conda config --set add_pip_as_python_dependency false
44-
45-
conda config --add channels conda-forge
46-
conda config --add channels robostack-staging
47-
conda config --add channels $CONDA_BLD_PATH
48-
# conda config --set channel_priority strict
49-
50-
# echo -e "\n\nMaking the build clobber file and running the build."
51-
# make_build_number ./ ./recipe ./.ci_support/${CONFIG}.yaml
6+
export FEEDSTOCK_ROOT=`pwd`
7+
export "CONDA_BLD_PATH=$HOME/conda-bld/"
528

53-
conda info
54-
conda config --show-sources
55-
conda list --show-channel-urls
9+
curl -fsSL https://pixi.sh/install.sh | bash
10+
export PATH="$HOME/.pixi/bin:$PATH"
5611

5712
for recipe in ${CURRENT_RECIPES[@]}; do
58-
cd ${FEEDSTOCK_ROOT}/recipes/${recipe}
59-
boa build . -m ${FEEDSTOCK_ROOT}/.ci_support/conda_forge_pinnings.yaml -m ${FEEDSTOCK_ROOT}/conda_build_config.yaml --target-platform=osx-arm64
13+
pixi run rattler-build build \
14+
--recipe ${FEEDSTOCK_ROOT}/recipes/${recipe} \
15+
-m ${FEEDSTOCK_ROOT}/conda_build_config.yaml \
16+
-c robostack-jazzy -c conda-forge \
17+
--output-dir $CONDA_BLD_PATH \
18+
--target-platform=osx-arm64
19+
20+
# -m ${FEEDSTOCK_ROOT}/.ci_support/conda_forge_pinnings.yaml \
6021
done
6122

62-
anaconda -t ${ANACONDA_API_TOKEN} upload ${CONDA_BLD_PATH}/osx-arm64/*.tar.bz2 --force
63-
# quetz-client "${QUETZ_URL}" ${CONDA_BLD_PATH} --force
64-
65-
# conda build ./recipe -m ./.ci_support/${CONFIG}.yaml --clobber-file ./.ci_support/clobber_${CONFIG}.yaml
66-
67-
# if [[ "${UPLOAD_PACKAGES}" != "False" ]]; then
68-
# echo -e "\n\nUploading the packages."
69-
# upload_package --validate --feedstock-name="libsolv-feedstock" ./ ./recipe ./.ci_support/${CONFIG}.yaml
70-
# fi
23+
anaconda -t ${ANACONDA_API_TOKEN} upload ${CONDA_BLD_PATH}/osx-*/*.conda --force

0 commit comments

Comments
 (0)