@@ -78,19 +78,25 @@ jobs:
78
78
strategy :
79
79
matrix :
80
80
python : ['3.9', '3.10', '3.11', '3.12']
81
- env :
82
- conda-bld : C:\Miniconda\conda-bld\win-64\
83
81
steps :
84
82
- uses : actions/checkout@v4.1.7
85
83
with :
86
84
fetch-depth : 0
85
+
87
86
- uses : conda-incubator/setup-miniconda@v3
88
87
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
92
92
python-version : ${{ matrix.python }}
93
93
94
+ - name : Install conda build
95
+ run : |
96
+ conda activate
97
+ conda install -y conda-build
98
+ conda list -n base
99
+
94
100
- name : Cache conda packages
95
101
uses : actions/cache@v4
96
102
env :
@@ -102,19 +108,26 @@ jobs:
102
108
restore-keys : |
103
109
${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-python-${{ matrix.python }}-
104
110
${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-
111
+
105
112
- name : Store conda paths as envs
106
113
shell : bash -l {0}
107
114
run : |
115
+ echo "CONDA_BLD=$CONDA/conda-bld/win-64/" | tr "\\\\" '/' >> $GITHUB_ENV
108
116
echo "WHEELS_OUTPUT_FOLDER=$GITHUB_WORKSPACE${{ runner.os == 'Linux' && '/' || '\\' }}" >> $GITHUB_ENV
117
+
109
118
- name : Build conda package
110
119
env :
111
120
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
+
113
125
- name : Upload artifact
114
126
uses : actions/upload-artifact@v4.4.0
115
127
with :
116
128
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
+
118
131
- name : Upload wheels artifact
119
132
uses : actions/upload-artifact@v4.4.0
120
133
with :
0 commit comments