Skip to content

Commit 8303547

Browse files
Specify numpy version to use in conda build following suite from conda-forge
1 parent 4fab097 commit 8303547

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/conda-package.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ env:
1111
MODULE_NAME: dpctl
1212
VER_SCRIPT1: "import json; f = open('ver.json', 'r'); j = json.load(f); f.close(); "
1313
VER_SCRIPT2: "d = j['dpctl'][0]; print('='.join((d[s] for s in ('version', 'build'))))"
14+
NUMPY_BUILD_VER: 1.19
1415

1516
jobs:
1617
build_linux:
@@ -45,7 +46,7 @@ jobs:
4546
- name: Build conda package
4647
run: |
4748
CHANNELS="-c defaults -c intel --override-channels"
48-
VERSIONS="--python ${{ matrix.python }}"
49+
VERSIONS="--python=${{ matrix.python }} --numpy=${{ env.NUMPY_BUILD_VER}}"
4950
TEST="--no-test"
5051
conda build \
5152
$TEST \
@@ -89,7 +90,7 @@ jobs:
8990
- name: Install conda-build
9091
run: conda install conda-build
9192
- name: Build conda package
92-
run: conda build --no-test --python ${{ matrix.python }} -c defaults -c intel --override-channels conda-recipe
93+
run: conda build --no-test --python=${{ matrix.python }} --numpy=${{ env.NUMPY_BUILD_VER}} -c defaults -c intel --override-channels conda-recipe
9394
- name: Upload artifact
9495
uses: actions/upload-artifact@v2
9596
with:

0 commit comments

Comments
 (0)