Skip to content

Commit da943bc

Browse files
1 parent f8cfaa7 commit da943bc

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

.github/workflows/conda-package.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ env:
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

1819
jobs:
1920
build_linux:
@@ -52,7 +53,7 @@ jobs:
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
113114
uses: actions/[email protected]
114115
with:
@@ -131,7 +132,7 @@ jobs:
131132
runner: [ubuntu-20.04]
132133
continue-on-error: ${{ matrix.experimental }}
133134
env:
134-
CHANNELS: -c intel -c conda-forge --override-channels
135+
CHANNELS: -c ${{ env.INTEL_CHANNEL }} -c conda-forge --override-channels
135136

136137
steps:
137138
- name: Download artifact
@@ -221,7 +222,7 @@ jobs:
221222
continue-on-error: ${{ matrix.experimental }}
222223
env:
223224
workdir: '${{ github.workspace }}'
224-
CHANNELS: -c intel -c conda-forge --override-channels
225+
CHANNELS: -c ${{ env.INTEL_CHANNEL }} -c conda-forge --override-channels
225226

226227
steps:
227228
- name: Download artifact
@@ -280,7 +281,7 @@ jobs:
280281
${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-
281282
- name: Install opencl_rt
282283
shell: cmd /C CALL {0}
283-
run: conda install -n ${{ env.TEST_ENV_NAME }} opencl_rt -c intel --override-channels
284+
run: conda install -n ${{ env.TEST_ENV_NAME }} opencl_rt -c ${{ env.INTEL_CHANNEL }} --override-channels
284285
- name: Install dpctl
285286
shell: cmd /C CALL {0}
286287
run: |
@@ -420,7 +421,7 @@ jobs:
420421
runner: [ubuntu-20.04]
421422
continue-on-error: ${{ matrix.experimental }}
422423
env:
423-
CHANNELS: -c intel -c conda-forge --override-channels
424+
CHANNELS: -c ${{ env.INTEL_CHANNEL }} -c conda-forge --override-channels
424425
EXAMPLES_ENV_NAME: examples
425426
BUILD_ENV_NAME: build_env
426427

@@ -484,7 +485,7 @@ jobs:
484485
shell: bash -l {0}
485486
run: |
486487
source $CONDA/etc/profile.d/conda.sh
487-
CHANNELS="-c $GITHUB_WORKSPACE/channel -c dppy/label/dev -c intel -c conda-forge --override-channels"
488+
CHANNELS="-c $GITHUB_WORKSPACE/channel -c dppy/label/dev -c ${{ env.INTEL_CHANNEL }} -c conda-forge --override-channels"
488489
export PACKAGE_VERSION=$(python -c "${VER_SCRIPT1} ${VER_SCRIPT2}")
489490
conda install -n ${{ env.EXAMPLES_ENV_NAME }} -y ${CHANNELS} dpctl=${PACKAGE_VERSION} dpnp || exit 1
490491
- name: Build and run examples of pybind11 extensions
@@ -571,7 +572,7 @@ jobs:
571572
runner: [ubuntu-20.04]
572573
continue-on-error: ${{ matrix.experimental }}
573574
env:
574-
CHANNELS: -c intel -c conda-forge --override-channels
575+
CHANNELS: -c ${{ env.INTEL_CHANNEL }} -c conda-forge --override-channels
575576
steps:
576577
- name: Checkout dpctl repo
577578
uses: actions/[email protected]

0 commit comments

Comments
 (0)