Skip to content

Commit 156ce3c

Browse files
Merge pull request #1831 from IntelPython/fix-build-windows-workflow
Triage CI failure
2 parents 109b4c2 + 5faef12 commit 156ce3c

File tree

2 files changed

+21
-7
lines changed

2 files changed

+21
-7
lines changed

.github/workflows/conda-package.yml

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -78,19 +78,25 @@ jobs:
7878
strategy:
7979
matrix:
8080
python: ['3.9', '3.10', '3.11', '3.12']
81-
env:
82-
conda-bld: C:\Miniconda\conda-bld\win-64\
8381
steps:
8482
- uses: actions/checkout@v4.1.7
8583
with:
8684
fetch-depth: 0
85+
8786
- uses: conda-incubator/setup-miniconda@v3
8887
with:
89-
auto-activate-base: true
90-
conda-build-version: "*"
91-
activate-environment: true
88+
miniforge-variant: Mambaforge
89+
miniforge-version: latest
90+
activate-environment: build
91+
channels: conda-forge
9292
python-version: ${{ matrix.python }}
9393

94+
- name: Install conda build
95+
run: |
96+
conda activate
97+
conda install -y conda-build
98+
conda list -n base
99+
94100
- name: Cache conda packages
95101
uses: actions/cache@v4
96102
env:
@@ -102,19 +108,26 @@ jobs:
102108
restore-keys: |
103109
${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-python-${{ matrix.python }}-
104110
${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-
111+
105112
- name: Store conda paths as envs
106113
shell: bash -l {0}
107114
run: |
115+
echo "CONDA_BLD=$CONDA/conda-bld/win-64/" | tr "\\\\" '/' >> $GITHUB_ENV
108116
echo "WHEELS_OUTPUT_FOLDER=$GITHUB_WORKSPACE${{ runner.os == 'Linux' && '/' || '\\' }}" >> $GITHUB_ENV
117+
109118
- name: Build conda package
110119
env:
111120
OVERRIDE_INTEL_IPO: 1 # IPO requires more resources that GH actions VM provides
112-
run: conda build --no-test --python ${{ matrix.python }} --numpy 2.0 -c conda-forge --override-channels conda-recipe
121+
run: |
122+
conda activate
123+
conda build --no-test --python ${{ matrix.python }} --numpy 2 -c conda-forge --override-channels conda-recipe
124+
113125
- name: Upload artifact
114126
uses: actions/upload-artifact@v4.4.0
115127
with:
116128
name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }}
117-
path: ${{ env.conda-bld }}${{ env.PACKAGE_NAME }}-*.tar.bz2
129+
path: ${{ env.CONDA_BLD }}${{ env.PACKAGE_NAME }}-*.tar.bz2
130+
118131
- name: Upload wheels artifact
119132
uses: actions/upload-artifact@v4.4.0
120133
with:

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1717
### Maintenance
1818

1919
* Update black version used in Python code style workflow [gh-1828](https://github.com/IntelPython/dpctl/pull/1828)
20+
* Fixed CI/CD workflow for building conda packages on Windows [gh-1831](https://github.com/IntelPython/dpctl/pull/1831)
2021

2122
## [0.18.0] - Sept. XX, 2024
2223

0 commit comments

Comments
 (0)