File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -376,7 +376,7 @@ jobs:
376
376
shell : bash -l {0}
377
377
run : |
378
378
source $CONDA/etc/profile.d/conda.sh
379
- conda install -y pybind11 cython
379
+ conda install -y pybind11 cython scikit-build ninja cmake>=3.22
380
380
conda install -y -c intel mkl-dpcpp mkl-devel-dpcpp numba-dppy
381
381
conda create -y -n build_env -c intel dpcpp_linux-64
382
382
- name : Build and run examples with native extensions
@@ -393,9 +393,19 @@ jobs:
393
393
do
394
394
pushd $d
395
395
conda activate --stack build_env
396
- python setup.py build_ext --inplace || exit 1
396
+ if [ -e CMakeLists.txt ]
397
+ then
398
+ python setup.py build_ext --inplace -- -G Ninja -DCMAKE_C_COMPILER:PATH=icx -DCMAKE_CXX_COMPILER:PATH=icpx || exit 1
399
+ else
400
+ python setup.py build_ext --inplace || exit 1
401
+ fi
397
402
conda deactivate
398
- python example.py
403
+ if [ -e tests ]
404
+ then
405
+ python -m pytest tests
406
+ else
407
+ python example.py
408
+ fi
399
409
popd
400
410
done
401
411
cd ../cython
You can’t perform that action at this time.
0 commit comments