Skip to content

Commit dfb243b

Browse files
Apply changes that worked in the toy repo
1 parent b07c3d2 commit dfb243b

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

.github/workflows/conda-package.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -261,21 +261,24 @@ jobs:
261261

262262
- uses: conda-incubator/setup-miniconda@v3
263263
with:
264-
miniforge-variant: Miniforge3
265264
miniforge-version: latest
265+
channels: conda-forge,nodefaults
266266
activate-environment: ${{ env.TEST_ENV_NAME }}
267267
python-version: ${{ matrix.python }}
268268

269+
- name: Remove defaults channel
270+
run: conda config --remove channels defaults
271+
269272
- name: Install conda-index
270273
run: |
271-
conda activate
272274
conda install -n base conda-index
273275
274276
- name: Create conda channel with the artifact bit
275277
shell: cmd /C CALL {0}
276278
run: |
277279
@echo on
278280
echo ${{ env.workdir }}
281+
mkdir ${{ env.workdir }}\channel
279282
mkdir ${{ env.workdir }}\channel\win-64
280283
move ${{ env.PACKAGE_NAME }}-*.tar.bz2 ${{ env.workdir }}\channel\win-64
281284
dir ${{ env.workdir }}\channel\win-64\
@@ -284,15 +287,20 @@ jobs:
284287
shell: cmd /C CALL {0}
285288
run: |
286289
@echo on
287-
conda activate
288290
conda index ${{ env.workdir }}\channel
289291
292+
- name: List content of the channels
293+
shell: cmd /C CALL {0}
294+
run: |
295+
dir ${{ env.workdir }}\channel
296+
dir ${{ env.workdir }}\channel\win-64
297+
290298
- name: Dump dpctl version info from created channel into ver.json
291299
shell: cmd /C CALL {0}
292300
run: |
293301
@echo on
294-
conda activate
295302
conda search ${{ env.PACKAGE_NAME }} -c ${{ env.workdir }}/channel --override-channels --info --json > ${{ env.workdir }}\ver.json
303+
dir ${{ env.workdir }}
296304
297305
- name: Output content of produced ver.json
298306
shell: pwsh

0 commit comments

Comments
 (0)