From 7f573a1dd30e450dedaf1b00234bf0ac8d56c830 Mon Sep 17 00:00:00 2001 From: Nikita Grigorian Date: Thu, 6 Mar 2025 16:01:03 -0800 Subject: [PATCH 1/2] Remove default channel when building conda package in CI --- .github/workflows/conda-package.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/conda-package.yml b/.github/workflows/conda-package.yml index 6e6ec0a..0b3e75d 100644 --- a/.github/workflows/conda-package.yml +++ b/.github/workflows/conda-package.yml @@ -145,6 +145,7 @@ jobs: miniforge-version: latest activate-environment: build channels: conda-forge + conda-remove-defaults: true python-version: ${{ matrix.python }} - name: Cache conda packages @@ -208,7 +209,8 @@ jobs: miniforge-variant: Miniforge3 miniforge-version: latest activate-environment: mkl_umath_test - channels: conda-forge,nodefaults + channels: conda-forge + conda-remove-defaults: true python-version: ${{ matrix.python }} - name: Install conda-index From b7db0133337737742dc19084357c3a7aa37cb206 Mon Sep 17 00:00:00 2001 From: Nikita Grigorian Date: Tue, 11 Mar 2025 00:24:40 -0700 Subject: [PATCH 2/2] Use conda-recipe instead of conda-recipe-cf Building with NumPy from conda-forge introduces build failures for mkl_umath depending on itself --- .github/workflows/conda-package.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/conda-package.yml b/.github/workflows/conda-package.yml index 0b3e75d..8dbb204 100644 --- a/.github/workflows/conda-package.yml +++ b/.github/workflows/conda-package.yml @@ -52,7 +52,7 @@ jobs: $TEST \ $VERSIONS \ $CHANNELS \ - conda-recipe-cf + conda-recipe - name: Upload artifact uses: actions/upload-artifact@v4.4.3 @@ -174,7 +174,7 @@ jobs: - name: Build conda package run: | conda activate - conda build --no-test --python ${{ matrix.python }} -c conda-forge -c https://software.repos.intel.com/python/conda --override-channels conda-recipe-cf + conda build --no-test --python ${{ matrix.python }} -c conda-forge -c https://software.repos.intel.com/python/conda --override-channels conda-recipe - name: Upload artifact uses: actions/upload-artifact@v4.4.3