File tree Expand file tree Collapse file tree 4 files changed +26
-13
lines changed Expand file tree Collapse file tree 4 files changed +26
-13
lines changed Original file line number Diff line number Diff line change @@ -5,14 +5,19 @@ set -e -x
5
5
6
6
python -m mkrecipe --type wheel || exit 1
7
7
8
- $CONDA /bin/conda config --set always_yes yes --set changeps1 no
9
- $CONDA /bin/conda install conda-build
10
- $CONDA /bin/conda install anaconda-client
11
- $CONDA /bin/conda info -a
8
+ # Switch to miniconda
9
+ source " /home/runner/miniconda/etc/profile.d/conda.sh"
10
+ hash -r
11
+ conda activate base
12
+ conda config --set always_yes yes --set changeps1 no
13
+ conda update -q conda
14
+ conda install conda-build
15
+ conda install anaconda-client
16
+ conda info -a
12
17
13
- $CONDA /bin/ conda config --add channels conda-forge || exit 1
14
- $CONDA /bin/ conda config --add channels domdfcoding || exit 1
18
+ conda config --add channels conda-forge || exit 1
19
+ conda config --add channels domdfcoding || exit 1
15
20
16
- $CONDA /bin/ conda build conda -c conda-forge -c domdfcoding --output-folder conda/dist --skip-existing
21
+ conda build conda -c conda-forge -c domdfcoding --output-folder conda/dist --skip-existing
17
22
18
23
exit 0
Original file line number Diff line number Diff line change 3
3
4
4
set -e -x
5
5
6
- $CONDA /bin/conda config --set always_yes yes --set changeps1 no
7
- $CONDA /bin/conda update -q conda
8
- $CONDA /bin/conda install anaconda-client
9
- $CONDA /bin/conda info -a
6
+ # Switch to miniconda
7
+ source " /home/runner/miniconda/etc/profile.d/conda.sh"
8
+ hash -r
9
+ conda activate base
10
+ conda config --set always_yes yes --set changeps1 no
11
+ conda update -q conda
12
+ conda install anaconda-client
13
+ conda info -a
10
14
11
15
for f in conda/dist/noarch/seed_intersphinx_mapping-* .tar.bz2; do
12
16
[ -e " $f " ] || continue
13
17
echo " $f "
14
- $CONDA /bin/ conda install " $f " || exit 1
18
+ conda install " $f " || exit 1
15
19
echo " Deploying to Anaconda.org..."
16
- $CONDA /bin/ anaconda -t " $ANACONDA_TOKEN " upload " $f " || exit 1
20
+ anaconda -t " $ANACONDA_TOKEN " upload " $f " || exit 1
17
21
echo " Successfully deployed to Anaconda.org."
18
22
done
19
23
Original file line number Diff line number Diff line change 30
30
python -m pip install --upgrade pip setuptools wheel
31
31
python -m pip install --upgrade repo_helper
32
32
# $CONDA is an environment variable pointing to the root of the miniconda directory
33
+ $CONDA/bin/conda update -q conda
33
34
$CONDA/bin/conda install conda-build=3.21.0
34
35
35
36
$CONDA/bin/conda config --add channels conda-forge
Original file line number Diff line number Diff line change @@ -168,6 +168,9 @@ jobs:
168
168
python -m pip install --upgrade pip setuptools wheel
169
169
python -m pip install --upgrade mkrecipe
170
170
171
+ wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
172
+ bash miniconda.sh -b -p $HOME/miniconda
173
+
171
174
- name : Build Conda 📦
172
175
run : |
173
176
chmod +x .github/actions_build_conda.sh
You can’t perform that action at this time.
0 commit comments