1414 TEST_ENV_NAME : test_dpctl
1515 VER_SCRIPT1 : " import json; f = open('ver.json', 'r'); j = json.load(f); f.close(); "
1616 VER_SCRIPT2 : " d = j['dpctl'][0]; print('='.join((d[s] for s in ('version', 'build'))))"
17+ INTEL_CHANNEL : " https://software.repos.intel.com/python/conda/"
1718
1819jobs :
1920 build_linux :
5253 - name : Build conda package
5354 run : |
5455 # use bootstrap channel to pull NumPy linked with OpenBLAS
55- CHANNELS="-c dppy/label/bootstrap -c intel -c conda-forge --override-channels"
56+ CHANNELS="-c dppy/label/bootstrap -c ${{ env.INTEL_CHANNEL }} -c conda-forge --override-channels"
5657 VERSIONS="--python ${{ matrix.python }} --numpy 1.23"
5758 TEST="--no-test"
5859 conda build \
@@ -108,7 +109,7 @@ jobs:
108109 - name : Build conda package
109110 env :
110111 OVERRIDE_INTEL_IPO : 1 # IPO requires more resources that GH actions VM provides
111- run : conda build --no-test --python ${{ matrix.python }} -c intel -c conda-forge --override-channels conda-recipe
112+ run : conda build --no-test --python ${{ matrix.python }} -c ${{ env.INTEL_CHANNEL }} -c conda-forge --override-channels conda-recipe
112113 - name : Upload artifact
113114114115 with :
@@ -130,10 +131,14 @@ jobs:
130131 experimental : [false]
131132 runner : [ubuntu-20.04]
132133 continue-on-error : ${{ matrix.experimental }}
133- env :
134- CHANNELS : -c intel -c conda-forge --override-channels
135134
136135 steps :
136+ - name : Construct channels line
137+ run : |
138+ echo "CHANNELS=-c ${{ env.INTEL_CHANNEL }} -c conda-forge --override-channels" >> $GITHUB_ENV
139+ - name : Display channels line
140+ run : |
141+ echo ${{ env.CHANNELS }}
137142 - name : Download artifact
138143 uses : actions/download-artifact@v4
139144 with :
@@ -221,9 +226,14 @@ jobs:
221226 continue-on-error : ${{ matrix.experimental }}
222227 env :
223228 workdir : ' ${{ github.workspace }}'
224- CHANNELS : -c intel -c conda-forge --override-channels
225229
226230 steps :
231+ - name : Construct channels line
232+ run : |
233+ echo "CHANNELS=-c ${{ env.INTEL_CHANNEL }} -c conda-forge --override-channels" >> $env:GITHUB_ENV
234+ - name : Display channels line
235+ run : |
236+ echo ${{ env.CHANNELS }}
227237 - name : Download artifact
228238 uses : actions/download-artifact@v4
229239 with :
@@ -280,7 +290,7 @@ jobs:
280290 ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-
281291 - name : Install opencl_rt
282292 shell : cmd /C CALL {0}
283- run : conda install -n ${{ env.TEST_ENV_NAME }} opencl_rt -c intel --override-channels
293+ run : conda install -n ${{ env.TEST_ENV_NAME }} opencl_rt -c ${{ env.INTEL_CHANNEL }} --override-channels
284294 - name : Install dpctl
285295 shell : cmd /C CALL {0}
286296 run : |
@@ -420,11 +430,16 @@ jobs:
420430 runner : [ubuntu-20.04]
421431 continue-on-error : ${{ matrix.experimental }}
422432 env :
423- CHANNELS : -c intel -c conda-forge --override-channels
424433 EXAMPLES_ENV_NAME : examples
425434 BUILD_ENV_NAME : build_env
426435
427436 steps :
437+ - name : Construct channels line
438+ run : |
439+ echo "CHANNELS="-c ${{ env.INTEL_CHANNEL }} -c conda-forge --override-channels" >> $GITHUB_ENV
440+ - name : Display channels line
441+ run : |
442+ echo ${{ env.CHANNELS }}
428443 - name : Install conda-index
429444 # Needed to be able to run conda index
430445 run : conda install conda-index -c conda-forge --override-channels
@@ -484,7 +499,7 @@ jobs:
484499 shell : bash -l {0}
485500 run : |
486501 source $CONDA/etc/profile.d/conda.sh
487- CHANNELS="-c $GITHUB_WORKSPACE/channel -c dppy/label/dev -c intel -c conda-forge --override-channels"
502+ CHANNELS="-c $GITHUB_WORKSPACE/channel -c dppy/label/dev -c ${{ env.INTEL_CHANNEL }} -c conda-forge --override-channels"
488503 export PACKAGE_VERSION=$(python -c "${VER_SCRIPT1} ${VER_SCRIPT2}")
489504 conda install -n ${{ env.EXAMPLES_ENV_NAME }} -y ${CHANNELS} dpctl=${PACKAGE_VERSION} dpnp || exit 1
490505 - name : Build and run examples of pybind11 extensions
@@ -570,9 +585,13 @@ jobs:
570585 experimental : [false]
571586 runner : [ubuntu-20.04]
572587 continue-on-error : ${{ matrix.experimental }}
573- env :
574- CHANNELS : -c intel -c conda-forge --override-channels
575588 steps :
589+ - name : Construct channels line
590+ run : |
591+ echo "CHANNELS="-c ${{ env.INTEL_CHANNEL }} -c conda-forge --override-channels" >> $GITHUB_ENV
592+ - name : Display channels line
593+ run : |
594+ echo ${{ env.CHANNELS }}
576595 - name : Checkout dpctl repo
577596578597 with :
0 commit comments