@@ -125,18 +125,24 @@ jobs:
125
125
strategy :
126
126
matrix :
127
127
python : ['3.9', '3.10']
128
- env :
129
- conda-bld : C:\Miniconda\conda-bld\win-64\
130
128
steps :
131
- - uses : actions/checkout@v4
129
+ - uses : actions/checkout@v4.2.0
132
130
with :
133
131
fetch-depth : 0
134
132
- uses : conda-incubator/setup-miniconda@v3
135
133
with :
136
- auto-activate-base : true
137
- conda-build-version : " *"
138
- activate-environment : true
134
+ miniforge-version : latest
135
+ activate-environment : build
139
136
python-version : ${{ matrix.python }}
137
+ channels : conda-forge
138
+
139
+ - name : Remove defaults channel
140
+ run : conda config --remove channels defaults
141
+
142
+ - name : Install conda-build
143
+ run : |
144
+ conda activate
145
+ conda install -n base conda-build
140
146
141
147
- name : Cache conda packages
142
148
uses : actions/cache@v4
@@ -149,13 +155,22 @@ jobs:
149
155
restore-keys : |
150
156
${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-python-${{ matrix.python }}-
151
157
${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-
158
+
152
159
- name : Build conda package
153
- run : conda build --no-test --python ${{ matrix.python }} -c https://software.repos.intel.com/python/conda -c conda-forge --override-channels conda-recipe
160
+ run : |
161
+ conda activate
162
+ conda build --no-test --python ${{ matrix.python }} -c https://software.repos.intel.com/python/conda -c conda-forge --override-channels conda-recipe
163
+
164
+ - name : Store conda paths as envs
165
+ shell : bash -l {0}
166
+ run : |
167
+ echo "CONDA_BLD=$CONDA/conda-bld/win-64/" | tr "\\\\" '/' >> $GITHUB_ENV
168
+
154
169
- name : Upload artifact
155
170
uses : actions/upload-artifact@v4
156
171
with :
157
172
name : ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }}
158
- path : ${{ env.conda-bld }}${{ env.PACKAGE_NAME }}-*.tar.bz2
173
+ path : ${{ env.CONDA_BLD }}${{ env.PACKAGE_NAME }}-*.tar.bz2
159
174
160
175
test_windows :
161
176
needs : build_windows
@@ -180,18 +195,27 @@ jobs:
180
195
name : ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }}
181
196
- uses : conda-incubator/setup-miniconda@v3
182
197
with :
183
- auto-update-conda : true
184
- conda-build-version : ' *'
185
- miniconda-version : ' latest'
186
- activate-environment : mkl_fft_test
198
+ miniforge-version : latest
199
+ activate-environment : build
187
200
python-version : ${{ matrix.python }}
201
+ channels : conda-forge,nodefaults
202
+
203
+ - name : Remove defaults channel
204
+ run : conda config --remove channels defaults
205
+
188
206
- name : Create conda channel with the artifact bit
189
207
shell : cmd /C CALL {0}
190
208
run : |
191
209
echo ${{ env.workdir }}
210
+ mkdir ${{ env.workdir }}\channel\
192
211
mkdir ${{ env.workdir }}\channel\win-64
193
212
move ${{ env.PACKAGE_NAME }}-*.tar.bz2 ${{ env.workdir }}\channel\win-64
194
213
dir ${{ env.workdir }}\channel\win-64
214
+
215
+ - name : Install conda index
216
+ shell : cmd /C CALL {0}
217
+ run : conda install conda-index
218
+
195
219
- name : Index the channel
196
220
shell : cmd /C CALL {0}
197
221
run : conda index ${{ env.workdir }}\channel
0 commit comments