Skip to content

Commit 1268139

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 932d8c3 commit 1268139

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: |
@@ -98,12 +105,12 @@ jobs:
98105
activate-environment: build
99106
channels: conda-forge
100107
python-version: ${{ matrix.python }}
101-
102-
- name: Install conda build
108+
- name: Update conda
109+
run: |
110+
conda update -n base --all
111+
- name: Install conda-build
103112
run: |
104113
conda install -n base -y conda-build
105-
conda list -n base
106-
107114
- name: Cache conda packages
108115
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
109116
env:
@@ -115,13 +122,17 @@ jobs:
115122
restore-keys: |
116123
${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-python-${{ matrix.python }}-
117124
${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-
118-
119125
- name: Store conda paths as envs
120126
shell: bash -l {0}
121127
run: |
122128
echo "CONDA_BLD=$CONDA/conda-bld/win-64/" | tr "\\\\" '/' >> "$GITHUB_ENV"
123129
echo "WHEELS_OUTPUT_FOLDER=$GITHUB_WORKSPACE${{ runner.os == 'Linux' && '/' || '\\' }}" >> "$GITHUB_ENV"
124-
130+
- name: Show Conda info
131+
run: |
132+
conda info --all
133+
- name: List base environment packages
134+
run: |
135+
conda list -n base
125136
- name: Build conda package
126137
env:
127138
OVERRIDE_INTEL_IPO: 1 # IPO requires more resources that GH actions VM provides

0 commit comments

Comments
 (0)