|
12 | 12 | PACKAGE_NAME: dpctl |
13 | 13 | MODULE_NAME: dpctl |
14 | 14 | TEST_ENV_NAME: test_dpctl |
15 | | - VER_SCRIPT1: "import json; f = open('ver.json', 'r'); j = json.load(f); f.close(); " |
16 | | - VER_SCRIPT2: "d = j['dpctl'][0]; print('='.join((d[s] for s in ('version', 'build'))))" |
| 15 | + VER_SCRIPT1: "import json; f = open('ver.json', 'r'); j = json.load(f); f.close(); d = j['dpctl'][0];" |
| 16 | + VER_SCRIPT2: "print('='.join((d[s] for s in ('version', 'build'))))" |
| 17 | + VER_SCRIPT3: "print(' '.join(d['depends']))" |
17 | 18 | INTEL_CHANNEL: "https://software.repos.intel.com/python/conda/" |
18 | 19 |
|
19 | 20 | jobs: |
@@ -546,12 +547,14 @@ jobs: |
546 | 547 | run: | |
547 | 548 | CHANNELS="${{ env.CHANNELS }}" |
548 | 549 | . $CONDA/etc/profile.d/conda.sh |
549 | | - conda create -n ${{ env.EXAMPLES_ENV_NAME }} -y pytest python=${{ matrix.python }} setuptools"<72.2.0" $CHANNELS |
550 | | - conda install -n ${{ env.EXAMPLES_ENV_NAME }} -y cmake $CHANNELS || exit 1 |
551 | | - conda install -n ${{ env.EXAMPLES_ENV_NAME }} -y ninja $CHANNELS || exit 1 |
552 | | - conda install -n ${{ env.EXAMPLES_ENV_NAME }} -y pybind11 cython scikit-build $CHANNELS || exit 1 |
553 | | - conda install -n ${{ env.EXAMPLES_ENV_NAME }} -y mkl-dpcpp mkl-devel-dpcpp dpcpp_cpp_rt $CHANNELS || exit 1 |
554 | | - conda create -y -n ${{ env.BUILD_ENV_NAME }} $CHANNELS gcc_linux-64 gxx_linux-64 ${{ env.DPCPP_CMPLR }} sysroot_linux-64">=2.28" |
| 550 | + export DPCTL_DEPENDS=$(python -c "${VER_SCRIPT1} ${VER_SCRIPT3}") |
| 551 | + echo "Dpctl dependencies: ${DPCTL_DEPENDS}" |
| 552 | + conda create -n ${{ env.EXAMPLES_ENV_NAME }} -y pytest python=${{ matrix.python }} setuptools"<72.2.0" $DPCTL_DEPENDS $CHANNELS |
| 553 | + conda install -n ${{ env.EXAMPLES_ENV_NAME }} -y cmake $DPCTL_DEPENDS $CHANNELS || exit 1 |
| 554 | + conda install -n ${{ env.EXAMPLES_ENV_NAME }} -y ninja $DPCTL_DEPENDS $CHANNELS || exit 1 |
| 555 | + conda install -n ${{ env.EXAMPLES_ENV_NAME }} -y pybind11 cython scikit-build $DPCTL_DEPENDS $CHANNELS || exit 1 |
| 556 | + conda install -n ${{ env.EXAMPLES_ENV_NAME }} -y mkl-dpcpp mkl-devel-dpcpp dpcpp_cpp_rt $DPCTL_DEPENDS $CHANNELS || exit 1 |
| 557 | + conda create -y -n ${{ env.BUILD_ENV_NAME }} $CHANNELS gcc_linux-64 gxx_linux-64 ${{ env.DPCPP_CMPLR }} $DPCTL_DEPENDS sysroot_linux-64">=2.28" |
555 | 558 | - name: Install dpctl |
556 | 559 | shell: bash -l {0} |
557 | 560 | run: | |
|
0 commit comments