Skip to content

Instantly share code, notes, and snippets.

@wolfv
Created October 29, 2021 10:13
Show Gist options
  • Save wolfv/864c2523ad9e63472ba766baac1253c1 to your computer and use it in GitHub Desktop.
Save wolfv/864c2523ad9e63472ba766baac1253c1 to your computer and use it in GitHub Desktop.
Build a feedstock with a script
#!/bin/bash
set -exuo pipefail
wget -qO- https://micro.mamba.pm/api/micromamba/linux-64/latest | tar -xvj bin/micromamba
./bin/micromamba shell init -p ~/micromamba
source ~/.bashrc
micromamba install gh -c conda-forge -y
gh auth login < $GITHUB_TOKEN
FEEDSTOCK=$1
PR=$2
VARIANT=$3
# clone and checkout
gh repo clone $1 feedstock
pushd feedstock
gh pr checkout $PR
if [[ "$OSTYPE" == "darwin"* ]]; then
export OSX_SDK_DIR=/opt
fi
./build-locally.py ${VARIANT} 2>&1 | tee ${VARIANT}.log
gh gist create ${VARIANT}.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment