Created
October 29, 2021 10:13
-
-
Save wolfv/864c2523ad9e63472ba766baac1253c1 to your computer and use it in GitHub Desktop.
Build a feedstock with a script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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