Skip to content

Commit a4a50a5

Browse files
committed
wip
1 parent de347df commit a4a50a5

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

.github/workflows/conda-package.yml

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ on:
1818
env:
1919
PACKAGE_NAME: dpbench
2020
MODULE_NAME: dpbench
21+
# CHANNELS: 'dppy/label/dev,conda-forge,intel,nodefaults'
22+
CHANNELS: 'dppy/label/dev,conda-forge,nodefaults'
2123
VER_JSON_NAME: 'version.json'
2224
VER_SCRIPT1: "import json; f = open('version.json', 'r'); j = json.load(f); f.close(); "
2325
VER_SCRIPT2: "d = j['dpbench'][0]; print('='.join((d[s] for s in ('version', 'build'))))"
@@ -57,7 +59,12 @@ jobs:
5759
with:
5860
auto-activate-base: true
5961
activate-environment: ""
62+
channels: ${{ env.CHANNELS }}
6063
channel-priority: "disabled"
64+
miniforge-version: latest
65+
66+
- name: Disable defautls
67+
run: conda config --remove channels defaults
6168

6269
- name: Store conda paths as envs
6370
shell: bash -l {0}
@@ -74,12 +81,9 @@ jobs:
7481
with:
7582
vs-version: '14.35'
7683

77-
- name: Set conda channels
78-
run: |
79-
conda config --append channels dppy/label/dev
80-
conda config --append channels conda-forge
81-
conda config --append channels nodefaults
82-
conda config --remove channels defaults
84+
- name: Show conda-rc
85+
shell: bash -el {0}
86+
run: cat ~/.condarc
8387

8488
- name: Build conda package
8589
run: conda build --python ${{ matrix.python }} conda-recipe
@@ -124,14 +128,12 @@ jobs:
124128
python-version: ${{ matrix.python }}
125129
activate-environment: ""
126130
auto-activate-base: true
131+
channels: ${{ env.CHANNELS }}
127132
channel-priority: "disabled"
133+
miniforge-version: latest
128134

129-
- name: Set conda channels
130-
run: |
131-
conda config --append channels dppy/label/dev
132-
conda config --append channels conda-forge
133-
conda config --append channels nodefaults
134-
conda config --remove channels defaults
135+
- name: Disable defautls
136+
run: conda config --remove channels defaults
135137

136138
- name: Store conda paths as envs
137139
shell: bash -l {0}

0 commit comments

Comments
 (0)