From 1268139541acceae987dc805415fb8ff2c4cbd74 Mon Sep 17 00:00:00 2001 From: Nikita Grigorian Date: Mon, 4 May 2026 11:59:26 -0700 Subject: [PATCH 1/4] update base env Conda in workflow also separates conda build installation into a separate step, and adds new debug steps --- .github/workflows/conda-package.yml | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/.github/workflows/conda-package.yml b/.github/workflows/conda-package.yml index 32fc6b8327..101bfbe979 100644 --- a/.github/workflows/conda-package.yml +++ b/.github/workflows/conda-package.yml @@ -51,8 +51,15 @@ jobs: ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}- - name: Add conda to system path run: echo "$CONDA/bin" >> "$GITHUB_PATH" + - name: Update conda + run: | + conda update -n base --all - name: Install conda-build - run: conda install conda-build -c conda-forge --override-channels + run: | + conda install conda-build -c conda-forge --override-channels + - name: Show Conda info + run: | + conda info --all - name: Store conda paths as envs shell: bash -l {0} run: | @@ -98,12 +105,12 @@ jobs: activate-environment: build channels: conda-forge python-version: ${{ matrix.python }} - - - name: Install conda build + - name: Update conda + run: | + conda update -n base --all + - name: Install conda-build run: | conda install -n base -y conda-build - conda list -n base - - name: Cache conda packages uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5 env: @@ -115,13 +122,17 @@ jobs: restore-keys: | ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-python-${{ matrix.python }}- ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}- - - name: Store conda paths as envs shell: bash -l {0} run: | echo "CONDA_BLD=$CONDA/conda-bld/win-64/" | tr "\\\\" '/' >> "$GITHUB_ENV" echo "WHEELS_OUTPUT_FOLDER=$GITHUB_WORKSPACE${{ runner.os == 'Linux' && '/' || '\\' }}" >> "$GITHUB_ENV" - + - name: Show Conda info + run: | + conda info --all + - name: List base environment packages + run: | + conda list -n base - name: Build conda package env: OVERRIDE_INTEL_IPO: 1 # IPO requires more resources that GH actions VM provides From c4f1d72857bc84e08575b449ba2254825c0a72d3 Mon Sep 17 00:00:00 2001 From: Nikita Grigorian Date: Mon, 4 May 2026 14:20:32 -0700 Subject: [PATCH 2/4] modify conda-index installation align with conda-build --- .github/workflows/conda-package.yml | 30 +++++++++++++++++++++++++---- 1 file changed, 26 insertions(+), 4 deletions(-) diff --git a/.github/workflows/conda-package.yml b/.github/workflows/conda-package.yml index 101bfbe979..93aac98b58 100644 --- a/.github/workflows/conda-package.yml +++ b/.github/workflows/conda-package.yml @@ -56,10 +56,13 @@ jobs: conda update -n base --all - name: Install conda-build run: | - conda install conda-build -c conda-forge --override-channels + conda install -n base conda-build -c conda-forge --override-channels - name: Show Conda info run: | conda info --all + - name: List base environment packages + run: | + conda list -n base - name: Store conda paths as envs shell: bash -l {0} run: | @@ -176,11 +179,18 @@ jobs: name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }} - name: Add conda to system path run: echo "$CONDA/bin" >> "$GITHUB_PATH" - - name: Install conda-index - # Needed to be able to run conda index + - name: Update conda run: | conda update -n base --all - conda install conda-index -c conda-forge --override-channels + - name: Install conda-index + run: | + conda install -n base conda-index -c conda-forge --override-channels + - name: Show Conda info + run: | + conda info --all + - name: List base environment packages + run: | + conda list -n base - name: Create conda channel run: | mkdir -p "$GITHUB_WORKSPACE/channel/linux-64" @@ -281,10 +291,22 @@ jobs: activate-environment: ${{ env.TEST_ENV_NAME }} python-version: ${{ matrix.python }} + - name: Update conda + run: | + conda update -n base --all + - name: Install conda-index run: | conda install -n base conda-index + - name: Show Conda info + run: | + conda info --all + + - name: List base environment packages + run: | + conda list -n base + - name: Create conda channel with the artifact bit shell: cmd /C CALL {0} run: | From 654a30e02e4e859a0104d77632c61eebc7d25609 Mon Sep 17 00:00:00 2001 From: Nikita Grigorian Date: Sat, 9 May 2026 22:21:01 -0700 Subject: [PATCH 3/4] use conda-specific parameters in setup miniconda --- .github/workflows/conda-package.yml | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/.github/workflows/conda-package.yml b/.github/workflows/conda-package.yml index 93aac98b58..e8da6b61db 100644 --- a/.github/workflows/conda-package.yml +++ b/.github/workflows/conda-package.yml @@ -104,16 +104,12 @@ jobs: - uses: conda-incubator/setup-miniconda@8ee1f361103df19b6f8c8655fd3967a8ecb162d5 # v4.0.1 with: + auto-update-conda: true miniforge-version: latest activate-environment: build channels: conda-forge python-version: ${{ matrix.python }} - - name: Update conda - run: | - conda update -n base --all - - name: Install conda-build - run: | - conda install -n base -y conda-build + conda-build-version: 26.3.0 - name: Cache conda packages uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5 env: @@ -286,15 +282,12 @@ jobs: - uses: conda-incubator/setup-miniconda@8ee1f361103df19b6f8c8655fd3967a8ecb162d5 # v4.0.1 with: + auto-update-conda: true miniforge-version: latest channels: conda-forge activate-environment: ${{ env.TEST_ENV_NAME }} python-version: ${{ matrix.python }} - - name: Update conda - run: | - conda update -n base --all - - name: Install conda-index run: | conda install -n base conda-index From c0724e69448f5d18be594e5a20d26fe761a0c2fd Mon Sep 17 00:00:00 2001 From: Nikita Grigorian Date: Sat, 9 May 2026 22:23:09 -0700 Subject: [PATCH 4/4] pin conda build version in environment --- .github/workflows/conda-package.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/conda-package.yml b/.github/workflows/conda-package.yml index e8da6b61db..0913e80f42 100644 --- a/.github/workflows/conda-package.yml +++ b/.github/workflows/conda-package.yml @@ -16,6 +16,7 @@ env: VER_SCRIPT2: "print('='.join((d[s] for s in ('version', 'build'))))" VER_SCRIPT3: "print(' '.join(map(lambda s: chr(34) + s + chr(34), [comp for comp in d['depends'] if 'dpcpp' in comp][1:])))" INTEL_CHANNEL: "https://software.repos.intel.com/python/conda/" + CONDA_BUILD_VERSION: 26.3.0 jobs: build_linux: @@ -56,7 +57,7 @@ jobs: conda update -n base --all - name: Install conda-build run: | - conda install -n base conda-build -c conda-forge --override-channels + conda install -n base conda-build=${{ env.CONDA_BUILD_VERSION }} -c conda-forge --override-channels - name: Show Conda info run: | conda info --all @@ -109,7 +110,7 @@ jobs: activate-environment: build channels: conda-forge python-version: ${{ matrix.python }} - conda-build-version: 26.3.0 + conda-build-version: ${{ env.CONDA_BUILD_VERSION }} - name: Cache conda packages uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5 env: