File tree Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Original file line number Diff line number Diff line change 56
56
fetch-depth : 0
57
57
58
58
- name : Setup miniconda
59
+ id : setup_miniconda
59
60
uses : conda-incubator/setup-miniconda@d2e6a045a86077fb6cad6f5adf368e9076ddaa8d # v3.1.0
60
61
with :
61
62
miniforge-version : latest
65
66
python-version : ${{ env.CONDA_BUILD_INDEX_ENV_PY_VER}}
66
67
activate-environment : ' build'
67
68
68
- # Sometimes `mamba install ...` fails due to slow download speed rate, so disable the check in mamba
69
- - name : Disable speed limit check in mamba
70
- run : echo "MAMBA_NO_LOW_SPEED_LIMIT=1" >> $GITHUB_ENV
69
+ - name : ReSetup miniconda
70
+ if : steps.setup_miniconda.outcome == 'failure'
71
+ uses : conda-incubator/setup-miniconda@d2e6a045a86077fb6cad6f5adf368e9076ddaa8d # v3.1.0
72
+ with :
73
+ miniforge-version : latest
74
+ use-mamba : ' true'
75
+ channels : conda-forge
76
+ conda-remove-defaults : ' true'
77
+ python-version : ${{ matrix.python }}
78
+ activate-environment : ${{ env.TEST_ENV_NAME }}
71
79
72
80
- name : Store conda paths as envs
73
81
shell : bash -el {0}
76
84
echo "WHEELS_OUTPUT_FOLDER=$GITHUB_WORKSPACE${{ runner.os == 'Linux' && '/' || '\\' }}" >> $GITHUB_ENV
77
85
78
86
- name : Install conda-build
87
+ id : install_conda_build
88
+ run : mamba install conda-build=${{ env.CONDA_BUILD_VERSION}}
89
+
90
+ - name : ReInstall conda-build
91
+ if : steps.install_conda_build.outcome == 'failure'
79
92
run : mamba install conda-build=${{ env.CONDA_BUILD_VERSION}}
80
93
81
94
- name : Build conda package
You can’t perform that action at this time.
0 commit comments