Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
ZzEeKkAa committed May 1, 2024
1 parent de347df commit a4a50a5
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions .github/workflows/conda-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'))))"
Expand Down Expand Up @@ -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}
Expand All @@ -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
Expand Down Expand Up @@ -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}
Expand Down

0 comments on commit a4a50a5

Please sign in to comment.