Skip to content

Commit be187ae

Browse files
committed
Use conda build over mambabuild
1 parent 26f0ceb commit be187ae

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

.github/workflows/conda-package.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,13 @@ jobs:
5555
fetch-depth: 0
5656

5757
- name: Setup miniconda
58-
uses: conda-incubator/setup-miniconda@v2
58+
uses: conda-incubator/setup-miniconda@v3
5959
with:
60-
python-version: ${{ matrix.python }}
61-
miniforge-variant: Mambaforge
62-
miniforge-version: latest
63-
activate-environment: "build"
60+
auto-activate-base: true
61+
activate-environment: ""
6462
channels: ${{ env.CHANNELS }}
6563
channel-priority: "disabled"
66-
run-post: false
64+
miniforge-version: latest
6765

6866
- name: Disable defautls
6967
run: conda config --remove channels defaults
@@ -74,18 +72,21 @@ jobs:
7472
echo "CONDA_BLD=$CONDA_PREFIX/conda-bld/${{ runner.os == 'Linux' && 'linux' || 'win' }}-64/" | tr "\\" '/' >> $GITHUB_ENV
7573
echo "WHEELS_OUTPUT_FOLDER=$GITHUB_WORKSPACE${{ runner.os == 'Linux' && '/' || '\\' }}" >> $GITHUB_ENV
7674
77-
# boa is an extention to conda so we can use mamba resolver in conda build
7875
- name: Install conda-build
79-
run: mamba install boa
76+
run: conda install conda-build
8077

8178
- name: Configure MSBuild
8279
if: runner.os == 'Windows'
8380
uses: microsoft/[email protected]
8481
with:
8582
vs-version: '14.35'
8683

84+
- name: Show conda-rc
85+
shell: bash -el {0}
86+
run: cat ~/.condarc
87+
8788
- name: Build conda package
88-
run: conda mambabuild --no-test --python ${{ matrix.python }} conda-recipe
89+
run: conda build --python ${{ matrix.python }} conda-recipe
8990

9091
- name: Upload artifact
9192
uses: actions/[email protected]
@@ -122,15 +123,14 @@ jobs:
122123

123124
steps:
124125
- name: Setup miniconda
125-
uses: conda-incubator/setup-miniconda@v2
126+
uses: conda-incubator/setup-miniconda@v3
126127
with:
127128
python-version: ${{ matrix.python }}
128-
miniforge-variant: Mambaforge
129-
miniforge-version: latest
130-
activate-environment: "build"
129+
activate-environment: ""
130+
auto-activate-base: true
131131
channels: ${{ env.CHANNELS }}
132132
channel-priority: "disabled"
133-
run-post: false
133+
miniforge-version: latest
134134

135135
- name: Disable defautls
136136
run: conda config --remove channels defaults
@@ -159,7 +159,7 @@ jobs:
159159
160160
# Needed to be able to run conda index
161161
- name: Install conda-build
162-
run: mamba install conda-build conda-index
162+
run: conda install conda-build conda-index
163163

164164
- name: Create conda channel
165165
run: python -m conda_index ${{ env.CHANNEL_PATH }}
@@ -170,7 +170,7 @@ jobs:
170170
cat ${{ env.VER_JSON_PATH }}
171171
172172
- name: Install dpbench
173-
run: mamba install ${{ env.PACKAGE_NAME }}=${{ env.PACKAGE_VERSION }} pytest intel::intel-opencl-rt python=${{ matrix.python }} -c ${{ env.CHANNEL_PATH }}
173+
run: conda install ${{ env.PACKAGE_NAME }}=${{ env.PACKAGE_VERSION }} pytest intel::intel-opencl-rt python=${{ matrix.python }} -c ${{ env.CHANNEL_PATH }}
174174

175175
- name: Setup OpenCL CPU device
176176
if: runner.os == 'Windows'

0 commit comments

Comments
 (0)