@@ -78,19 +78,25 @@ jobs:
7878 strategy :
7979 matrix :
8080 python : ['3.9', '3.10', '3.11', '3.12']
81- env :
82- conda-bld : C:\Miniconda\conda-bld\win-64\
8381 steps :
8482 - uses : actions/checkout@v4.1.7
8583 with :
8684 fetch-depth : 0
85+
8786 - uses : conda-incubator/setup-miniconda@v3
8887 with :
89- auto-activate-base : true
90- conda-build-version : " *"
91- activate-environment : true
88+ miniforge-variant : Mambaforge
89+ miniforge-version : latest
90+ activate-environment : build
91+ channels : conda-forge
9292 python-version : ${{ matrix.python }}
9393
94+ - name : Install conda build
95+ run : |
96+ conda activate
97+ conda install -y conda-build
98+ conda list -n base
99+
94100 - name : Cache conda packages
95101 uses : actions/cache@v4
96102 env :
@@ -102,19 +108,26 @@ jobs:
102108 restore-keys : |
103109 ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-python-${{ matrix.python }}-
104110 ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-
111+
105112 - name : Store conda paths as envs
106113 shell : bash -l {0}
107114 run : |
115+ echo "CONDA_BLD=$CONDA/conda-bld/win-64/" | tr "\\\\" '/' >> $GITHUB_ENV
108116 echo "WHEELS_OUTPUT_FOLDER=$GITHUB_WORKSPACE${{ runner.os == 'Linux' && '/' || '\\' }}" >> $GITHUB_ENV
117+
109118 - name : Build conda package
110119 env :
111120 OVERRIDE_INTEL_IPO : 1 # IPO requires more resources that GH actions VM provides
112- run : conda build --no-test --python ${{ matrix.python }} --numpy 2.0 -c conda-forge --override-channels conda-recipe
121+ run : |
122+ conda activate
123+ conda build --no-test --python ${{ matrix.python }} --numpy 2 -c conda-forge --override-channels conda-recipe
124+
113125 - name : Upload artifact
114126 uses : actions/upload-artifact@v4.4.0
115127 with :
116128 name : ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }}
117- path : ${{ env.conda-bld }}${{ env.PACKAGE_NAME }}-*.tar.bz2
129+ path : ${{ env.CONDA_BLD }}${{ env.PACKAGE_NAME }}-*.tar.bz2
130+
118131 - name : Upload wheels artifact
119132 uses : actions/upload-artifact@v4.4.0
120133 with :
0 commit comments