From a4a50a5c96a1346b6ab418c2e3750777bb069423 Mon Sep 17 00:00:00 2001 From: Yevhenii Havrylko Date: Wed, 1 May 2024 16:31:36 -0400 Subject: [PATCH] wip --- .github/workflows/conda-package.yml | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/.github/workflows/conda-package.yml b/.github/workflows/conda-package.yml index a71d3c64..c7d5f532 100644 --- a/.github/workflows/conda-package.yml +++ b/.github/workflows/conda-package.yml @@ -18,6 +18,8 @@ on: env: PACKAGE_NAME: dpbench MODULE_NAME: dpbench + # CHANNELS: 'dppy/label/dev,conda-forge,intel,nodefaults' + CHANNELS: 'dppy/label/dev,conda-forge,nodefaults' VER_JSON_NAME: 'version.json' VER_SCRIPT1: "import json; f = open('version.json', 'r'); j = json.load(f); f.close(); " VER_SCRIPT2: "d = j['dpbench'][0]; print('='.join((d[s] for s in ('version', 'build'))))" @@ -57,7 +59,12 @@ jobs: with: auto-activate-base: true activate-environment: "" + channels: ${{ env.CHANNELS }} channel-priority: "disabled" + miniforge-version: latest + + - name: Disable defautls + run: conda config --remove channels defaults - name: Store conda paths as envs shell: bash -l {0} @@ -74,12 +81,9 @@ jobs: with: vs-version: '14.35' - - name: Set conda channels - run: | - conda config --append channels dppy/label/dev - conda config --append channels conda-forge - conda config --append channels nodefaults - conda config --remove channels defaults + - name: Show conda-rc + shell: bash -el {0} + run: cat ~/.condarc - name: Build conda package run: conda build --python ${{ matrix.python }} conda-recipe @@ -124,14 +128,12 @@ jobs: python-version: ${{ matrix.python }} activate-environment: "" auto-activate-base: true + channels: ${{ env.CHANNELS }} channel-priority: "disabled" + miniforge-version: latest - - name: Set conda channels - run: | - conda config --append channels dppy/label/dev - conda config --append channels conda-forge - conda config --append channels nodefaults - conda config --remove channels defaults + - name: Disable defautls + run: conda config --remove channels defaults - name: Store conda paths as envs shell: bash -l {0}