4343 - name : Install conda-build
4444 run : conda install conda-build
4545
46+ - name : Store conda paths as envs
47+ shell : bash -l {0}
48+ run : |
49+ echo "WHEELS_OUTPUT_FOLDER=$GITHUB_WORKSPACE${{ runner.os == 'Linux' && '/' || '\\' }}" >> $GITHUB_ENV
50+
4651 - name : Build conda package
4752 run : |
4853 CHANNELS="-c conda-forge -c https://software.repos.intel.com/python/conda --override-channels"
6166 with :
6267 name : ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }}
6368 path : ${{ env.CONDA_BLD }}/${{ env.PACKAGE_NAME }}-*.conda
69+ - name : Upload wheels artifact
70+ 71+ with :
72+ name : ${{ env.PACKAGE_NAME }} ${{ runner.os }} Wheels Python ${{ matrix.python }}
73+ path : ${{ env.WHEELS_OUTPUT_FOLDER }}${{ env.PACKAGE_NAME }}-*.whl
74+
6475
6576 test_linux :
6677 needs : build_linux
@@ -173,6 +184,12 @@ jobs:
173184 conda install -y conda-build
174185 conda list -n base
175186
187+ - name : Store conda paths as envs
188+ shell : bash -l {0}
189+ run : |
190+ echo "CONDA_BLD=$CONDA/conda-bld/win-64/" | tr "\\\\" '/' >> $GITHUB_ENV
191+ echo "WHEELS_OUTPUT_FOLDER=$GITHUB_WORKSPACE${{ runner.os == 'Linux' && '/' || '\\' }}" >> $GITHUB_ENV
192+
176193 - name : Build conda package
177194 run : |
178195 conda activate
@@ -184,6 +201,12 @@ jobs:
184201 name : ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }}
185202 path : ${{ env.CONDA_BLD }}${{ env.PACKAGE_NAME }}-*.conda
186203
204+ - name : Upload wheels artifact
205+ 206+ with :
207+ name : ${{ env.PACKAGE_NAME }} ${{ runner.os }} Wheels Python ${{ matrix.python }}
208+ path : ${{ env.WHEELS_OUTPUT_FOLDER }}${{ env.PACKAGE_NAME }}-*.whl
209+
187210 test_windows :
188211 needs : build_windows
189212 runs-on : ${{ matrix.runner }}
0 commit comments