Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
thatstoasty committed Sep 25, 2024
1 parent c43459f commit 88752a7
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,15 @@
set -e

# The environment to build the package for. Usually "default", but might be "nightly" or others.
ENVRIONMENT="${1-default}"
if [[ "${ENVRIONMENT}" == "--help" ]]; then
echo "Usage: ENVRIONMENT - Argument 1 corresponds with the environment you wish to build the package for."
MAX_CHANNEL="https://conda.modular.com/max"
ENV="${1-default}"
if [[ "${ENV}" == "--help" ]]; then
echo "Usage: ENV - Argument 1 corresponds with the environment you wish to build the package for."
exit 0
else if [[ "${ENV}" == "nightly" ]]; then
MAX_CHANNEL="https://conda.modular.com/max-nightly"
fi

magic run template -m "${ENVRIONMENT}"
rattler-build build -r src -c https://conda.modular.com/max -c conda-forge --skip-existing=all
magic run template -m "${ENV}"
rattler-build build -r src -c "${MAX_CHANNEL}" -c conda-forge --skip-existing=all
rm src/recipe.yaml

0 comments on commit 88752a7

Please sign in to comment.