Skip to content

Commit 57cacca

Browse files
committed
update base env Conda in workflow
also separates conda build installation into a separate step, and adds new debug steps
1 parent c261730 commit 57cacca

1 file changed

Lines changed: 18 additions & 7 deletions

File tree

.github/workflows/conda-package.yml

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,15 @@ jobs:
5151
${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-
5252
- name: Add conda to system path
5353
run: echo $CONDA/bin >> $GITHUB_PATH
54+
- name: Update conda
55+
run: |
56+
conda update -n base --all
5457
- name: Install conda-build
55-
run: conda install conda-build -c conda-forge --override-channels
58+
run: |
59+
conda install conda-build -c conda-forge --override-channels
60+
- name: Show Conda info
61+
run: |
62+
conda info --all
5663
- name: Store conda paths as envs
5764
shell: bash -l {0}
5865
run: |
@@ -105,12 +112,12 @@ jobs:
105112
activate-environment: build
106113
channels: conda-forge
107114
python-version: ${{ matrix.python }}
108-
109-
- name: Install conda build
115+
- name: Update conda
116+
run: |
117+
conda update -n base --all
118+
- name: Install conda-build
110119
run: |
111120
conda install -n base -y conda-build
112-
conda list -n base
113-
114121
- name: Cache conda packages
115122
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
116123
env:
@@ -122,13 +129,17 @@ jobs:
122129
restore-keys: |
123130
${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-python-${{ matrix.python }}-
124131
${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-
125-
126132
- name: Store conda paths as envs
127133
shell: bash -l {0}
128134
run: |
129135
echo "CONDA_BLD=$CONDA/conda-bld/win-64/" | tr "\\\\" '/' >> $GITHUB_ENV
130136
echo "WHEELS_OUTPUT_FOLDER=$GITHUB_WORKSPACE${{ runner.os == 'Linux' && '/' || '\\' }}" >> $GITHUB_ENV
131-
137+
- name: Show Conda info
138+
run: |
139+
conda info --all
140+
- name: List base environment packages
141+
run: |
142+
conda list -n base
132143
- name: Build conda package
133144
env:
134145
OVERRIDE_INTEL_IPO: 1 # IPO requires more resources that GH actions VM provides

0 commit comments

Comments
 (0)