Skip to content

Commit 5250808

Browse files
committed
use dedicated build environments in Windows workflow
1 parent 2bdd772 commit 5250808

2 files changed

Lines changed: 4 additions & 12 deletions

File tree

.github/workflows/conda-package-cf.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -182,12 +182,9 @@ jobs:
182182

183183
- uses: conda-incubator/setup-miniconda@fc2d68f6413eb2d87b895e92f8584b5b94a10167 # v3.3.0
184184
with:
185-
miniforge-variant: Miniforge3
186185
miniforge-version: latest
187-
auto-activate: true
188-
activate-environment: base
186+
activate-environment: build
189187
channels: conda-forge
190-
conda-remove-defaults: true
191188
python-version: ${{ matrix.python }}
192189

193190
- name: Install conda-build
@@ -213,7 +210,7 @@ jobs:
213210
- name: Store conda paths as envs
214211
shell: bash -l {0}
215212
run: |
216-
echo "CONDA_BLD=$CONDA/conda-bld/win-64/" | tr "\\\\" '/' >> "$GITHUB_ENV"
213+
echo "CONDA_BLD=$CONDA_PREFIX/conda-bld/win-64/" | tr "\\\\" '/' >> "$GITHUB_ENV"
217214
218215
- name: Upload artifact
219216
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
@@ -249,7 +246,6 @@ jobs:
249246
with:
250247
miniforge-version: latest
251248
channels: conda-forge
252-
conda-remove-defaults: true
253249
activate-environment: ${{ env.TEST_ENV_NAME }}
254250
python-version: ${{ matrix.python }}
255251

.github/workflows/conda-package.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -171,12 +171,9 @@ jobs:
171171

172172
- uses: conda-incubator/setup-miniconda@fc2d68f6413eb2d87b895e92f8584b5b94a10167 # v3.3.0
173173
with:
174-
miniforge-variant: Miniforge3
175174
miniforge-version: latest
176-
auto-activate: true
177-
activate-environment: base
175+
activate-environment: build
178176
channels: conda-forge
179-
conda-remove-defaults: true
180177
python-version: ${{ matrix.python }}
181178

182179
- name: Install conda-build
@@ -204,7 +201,7 @@ jobs:
204201
- name: Store conda paths as envs
205202
shell: bash -l {0}
206203
run: |
207-
echo "CONDA_BLD=$CONDA/conda-bld/win-64/" | tr "\\\\" '/' >> "$GITHUB_ENV"
204+
echo "CONDA_BLD=$CONDA_PREFIX/conda-bld/win-64/" | tr "\\\\" '/' >> "$GITHUB_ENV"
208205
209206
- name: Upload artifact
210207
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
@@ -239,7 +236,6 @@ jobs:
239236
with:
240237
miniforge-version: latest
241238
channels: conda-forge
242-
conda-remove-defaults: true
243239
activate-environment: ${{ env.TEST_ENV_NAME }}
244240
python-version: ${{ matrix.python }}
245241

0 commit comments

Comments
 (0)