@@ -21,13 +21,19 @@ jobs:
2121 matrix :
2222 python : ["3.10", "3.11", "3.12", "3.13"]
2323 steps :
24+ - name : Cancel Previous Runs
25+ uses : styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa # 0.12.1
26+ with :
27+ access_token : ${{ github.token }}
28+
2429 - uses : actions/checkout@v4
2530 with :
2631 fetch-depth : 0
2732
2833 - name : Set pkgs_dirs
2934 run : |
3035 echo "pkgs_dirs: [~/.conda/pkgs]" >> ~/.condarc
36+
3137 - name : Cache conda packages
3238 uses : actions/cache@v4
3339 env :
4248
4349 - name : Add conda to system path
4450 run : echo $CONDA/bin >> $GITHUB_PATH
51+
4552 - name : Install conda-build
4653 run : conda install conda-build
54+
55+ - name : Store conda paths as envs
56+ shell : bash -el {0}
57+ run : |
58+ echo "CONDA_BLD=/usr/share/miniconda/conda-bld/linux-64/" >> $GITHUB_ENV
59+ echo "WHEELS_OUTPUT_FOLDER=$GITHUB_WORKSPACE/" >> $GITHUB_ENV
60+
4761 - name : Build conda package
4862 run : |
4963 CHANNELS="-c https://software.repos.intel.com/python/conda -c conda-forge --override-channels"
@@ -55,21 +69,32 @@ jobs:
5569 $VERSIONS \
5670 $CHANNELS \
5771 conda-recipe
72+
5873 - name : Upload artifact
59- uses : actions/upload-artifact@v4
74+ uses : actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
6075 with :
6176 name : ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }}
62- path : /usr/share/miniconda/conda-bld/linux-64/${{ env.PACKAGE_NAME }}-*.conda
77+ path : ${{ env.CONDA_BLD }}${{ env.PACKAGE_NAME }}-*.conda
78+
79+ - name : Upload wheels artifact
80+ uses : actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
81+ with :
82+ name : ${{ env.PACKAGE_NAME }} ${{ runner.os }} Wheels Python ${{ matrix.python }}
83+ path : ${{ env.WHEELS_OUTPUT_FOLDER }}mkl_service-*.whl
6384
6485 build_windows :
6586 runs-on : windows-latest
6687
6788 strategy :
6889 matrix :
6990 python : ["3.10", "3.11", "3.12", "3.13"]
70- env :
71- conda-bld : C:\Miniconda\conda-bld\win-64\
91+
7292 steps :
93+ - name : Cancel Previous Runs
94+ uses : styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa # 0.12.1
95+ with :
96+ access_token : ${{ github.token }}
97+
7398 - uses : actions/checkout@v4
7499 with :
75100 fetch-depth : 0
0 commit comments