@@ -140,6 +140,10 @@ jobs:
140140 set "sha=%GITHUB_SHA%"
141141 call ".scripts\run_win_build.bat"
142142 env :
143+ # default value; make explicit for now (pending smithy-improvements),
144+ # as it needs to be synchronized with artefact generation below; see
145+ # https://github.com/conda-forge/conda-smithy/issues/2345
146+ CONDA_BLD_DIR : C:\bld
143147 MINIFORGE_HOME : D:\Miniforge
144148 PYTHONUNBUFFERED : 1
145149 CONFIG : ${{ matrix.CONFIG }}
@@ -158,7 +162,6 @@ jobs:
158162 CONFIG : ${{ matrix.CONFIG }}
159163 SHORT_CONFIG : ${{ matrix.SHORT_CONFIG }}
160164 OS : ${{ matrix.os }}
161- MINIFORGE_HOME_WIN : D:\Miniforge
162165 run : |
163166 export CI=github_actions
164167 export CI_RUN_ID=$GITHUB_RUN_ID
@@ -167,7 +170,8 @@ jobs:
167170 if [ $OS == "macos" ]; then
168171 export CONDA_BLD_DIR="${MINIFORGE_HOME:-${HOME}/miniforge3}/conda-bld"
169172 elif [ $OS == "windows" ]; then
170- export CONDA_BLD_DIR="${MINIFORGE_HOME_WIN//\\//}/conda-bld"
173+ # this should be populated consistently by smithy, see above
174+ export CONDA_BLD_DIR="C:\\bld"
171175 else
172176 export CONDA_BLD_DIR="build_artifacts"
173177 fi
@@ -185,7 +189,11 @@ jobs:
185189 # we do not want to trigger artefact creation if the job is cancelled;
186190 # gate this on either explicit success or failure
187191 if [ $JOB_STATUS == "failure" || $JOB_STATUS == "success" ]; then
188- ./.scripts/create_conda_build_artifacts.sh
192+ if [ $OS == "windows" ]; then
193+ cmd.exe /c .scripts\\create_conda_build_artifacts.bat
194+ else
195+ ./.scripts/create_conda_build_artifacts.sh
196+ fi
189197 else
190198 # skips upload steps below, which are gated on preparation success
191199 exit 1
0 commit comments