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 :
2324 matrix :
2425 python : ['3.9', '3.10', '3.11']
2526 steps :
26- - uses : actions/checkout@v4.1.5
27+ - uses : actions/checkout@v4.1.7
2728 with :
2829 fetch-depth : 0
2930
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 \
@@ -61,12 +62,12 @@ jobs:
6162 $CHANNELS \
6263 conda-recipe
6364 - name : Upload artifact
64- uses : actions/upload-artifact@v4
65+ uses : actions/upload-artifact@v4.3.4
6566 with :
6667 name : ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }}
6768 path : /usr/share/miniconda/conda-bld/linux-64/${{ env.PACKAGE_NAME }}-*.tar.bz2
6869 - name : Upload wheels artifact
69- uses : actions/upload-artifact@v4
70+ uses : actions/upload-artifact@v4.3.4
7071 with :
7172 name : ${{ env.PACKAGE_NAME }} ${{ runner.os }} Wheels Python ${{ matrix.python }}
7273 path : ${{ env.WHEELS_OUTPUT_FOLDER }}${{ env.PACKAGE_NAME }}-*.whl
8081 env :
8182 conda-bld : C:\Miniconda\conda-bld\win-64\
8283 steps :
83- - uses : actions/checkout@v4.1.5
84+ - uses : actions/checkout@v4.1.7
8485 with :
8586 fetch-depth : 0
8687 - uses : conda-incubator/setup-miniconda@v3
@@ -108,14 +109,14 @@ 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
113- uses : actions/upload-artifact@v4
114+ uses : actions/upload-artifact@v4.3.4
114115 with :
115116 name : ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }}
116117 path : ${{ env.conda-bld }}${{ env.PACKAGE_NAME }}-*.tar.bz2
117118 - name : Upload wheels artifact
118- uses : actions/upload-artifact@v4
119+ uses : actions/upload-artifact@v4.3.4
119120 with :
120121 name : ${{ env.PACKAGE_NAME }} ${{ runner.os }} Wheels Python ${{ matrix.python }}
121122 path : ${{ env.WHEELS_OUTPUT_FOLDER }}${{ env.PACKAGE_NAME }}-*.whl
@@ -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,15 @@ 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+ shell : pwsh
233+ run : |
234+ echo "CHANNELS=-c ${{ env.INTEL_CHANNEL }} -c conda-forge --override-channels" >> $env:GITHUB_ENV
235+ - name : Display channels line
236+ run : |
237+ echo ${{ env.CHANNELS }}
227238 - name : Download artifact
228239 uses : actions/download-artifact@v4
229240 with :
@@ -280,7 +291,7 @@ jobs:
280291 ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-
281292 - name : Install opencl_rt
282293 shell : cmd /C CALL {0}
283- run : conda install -n ${{ env.TEST_ENV_NAME }} opencl_rt -c intel --override-channels
294+ run : conda install -n ${{ env.TEST_ENV_NAME }} opencl_rt -c ${{ env.INTEL_CHANNEL }} --override-channels
284295 - name : Install dpctl
285296 shell : cmd /C CALL {0}
286297 run : |
@@ -420,16 +431,21 @@ jobs:
420431 runner : [ubuntu-20.04]
421432 continue-on-error : ${{ matrix.experimental }}
422433 env :
423- CHANNELS : -c intel -c conda-forge --override-channels
424434 EXAMPLES_ENV_NAME : examples
425435 BUILD_ENV_NAME : build_env
426436
427437 steps :
438+ - name : Construct channels line
439+ run : |
440+ echo "CHANNELS=-c ${{ env.INTEL_CHANNEL }} -c conda-forge --override-channels" >> $GITHUB_ENV
441+ - name : Display channels line
442+ run : |
443+ echo ${{ env.CHANNELS }}
428444 - name : Install conda-index
429445 # Needed to be able to run conda index
430446 run : conda install conda-index -c conda-forge --override-channels
431447 - name : Checkout dpctl repo
432- uses : actions/checkout@v4.1.5
448+ uses : actions/checkout@v4.1.7
433449 with :
434450 fetch-depth : 0
435451 - name : Download artifact
@@ -484,7 +500,7 @@ jobs:
484500 shell : bash -l {0}
485501 run : |
486502 source $CONDA/etc/profile.d/conda.sh
487- CHANNELS="-c $GITHUB_WORKSPACE/channel -c dppy/label/dev -c intel -c conda-forge --override-channels"
503+ CHANNELS="-c $GITHUB_WORKSPACE/channel -c dppy/label/dev -c ${{ env.INTEL_CHANNEL }} -c conda-forge --override-channels"
488504 export PACKAGE_VERSION=$(python -c "${VER_SCRIPT1} ${VER_SCRIPT2}")
489505 conda install -n ${{ env.EXAMPLES_ENV_NAME }} -y ${CHANNELS} dpctl=${PACKAGE_VERSION} dpnp || exit 1
490506 - name : Build and run examples of pybind11 extensions
@@ -570,11 +586,15 @@ jobs:
570586 experimental : [false]
571587 runner : [ubuntu-20.04]
572588 continue-on-error : ${{ matrix.experimental }}
573- env :
574- CHANNELS : -c intel -c conda-forge --override-channels
575589 steps :
590+ - name : Construct channels line
591+ run : |
592+ echo "CHANNELS=-c ${{ env.INTEL_CHANNEL }} -c conda-forge --override-channels" >> $GITHUB_ENV
593+ - name : Display channels line
594+ run : |
595+ echo ${{ env.CHANNELS }}
576596 - name : Checkout dpctl repo
577- uses : actions/checkout@v4.1.5
597+ uses : actions/checkout@v4.1.7
578598 with :
579599 fetch-depth : 0
580600 - name : Cache array API tests
@@ -717,7 +737,7 @@ jobs:
717737 run : conda install anaconda-client -c conda-forge --override-channels
718738
719739 - name : Checkout repo
720- uses : actions/checkout@v4.1.5
740+ uses : actions/checkout@v4.1.7
721741 with :
722742 repository : IntelPython/devops-tools
723743 fetch-depth : 0
0 commit comments