Skip to content

Commit 023024f

Browse files
Fix for windows build
1 parent 043c41a commit 023024f

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,12 @@ jobs:
157157
restore-keys: |
158158
${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-python-${{ matrix.python }}-
159159
${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-
160+
160161
- name: Build conda package with NumPy 2.0
161-
run: conda build --no-test --python ${{ matrix.python }} --numpy 2 -c conda-forge --override-channels conda-recipe-cf
162+
run: |
163+
conda activate
164+
conda build --no-test --python ${{ matrix.python }} --numpy 2 -c conda-forge --override-channels conda-recipe-cf
165+
162166
- name: Upload artifact
163167
uses: actions/upload-artifact@v4
164168
with:

.github/workflows/conda-package.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,15 +128,15 @@ jobs:
128128
env:
129129
conda-bld: C:\Miniconda\conda-bld\win-64\
130130
steps:
131-
- uses: actions/checkout@v4
131+
- uses: actions/checkout@v4.2.0
132132
with:
133133
fetch-depth: 0
134134
- uses: conda-incubator/setup-miniconda@v3
135135
with:
136136
miniforge-version: latest
137137
activate-environment: build
138138
python-version: ${{ matrix.python }}
139-
channels: conda-forge,nodefaults
139+
channels: conda-forge
140140

141141
- name: Remove defaults channel
142142
run: conda config --remove channels defaults
@@ -157,8 +157,12 @@ jobs:
157157
restore-keys: |
158158
${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-python-${{ matrix.python }}-
159159
${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-
160+
160161
- name: Build conda package
161-
run: conda build --no-test --python ${{ matrix.python }} -c https://software.repos.intel.com/python/conda -c conda-forge --override-channels conda-recipe
162+
run: |
163+
conda activate
164+
conda build --no-test --python ${{ matrix.python }} -c https://software.repos.intel.com/python/conda -c conda-forge --override-channels conda-recipe
165+
162166
- name: Upload artifact
163167
uses: actions/upload-artifact@v4
164168
with:

0 commit comments

Comments
 (0)