Skip to content

Commit 6542b52

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

File tree

2 files changed

+14
-16
lines changed

2 files changed

+14
-16
lines changed

.github/workflows/build_and_run.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ jobs:
7777
uses: conda-incubator/setup-miniconda@v2
7878
with:
7979
python-version: ${{ matrix.python }}
80-
miniforge-variant: Mambaforge
8180
miniforge-version: latest
8281
activate-environment: "build"
8382
channel-priority: "disabled"

.github/workflows/conda-package.yml

Lines changed: 14 additions & 15 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,13 @@ 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
130129
activate-environment: "build"
131130
channels: ${{ env.CHANNELS }}
132131
channel-priority: "disabled"
133-
run-post: false
132+
miniforge-version: latest
134133

135134
- name: Disable defautls
136135
run: conda config --remove channels defaults
@@ -159,7 +158,7 @@ jobs:
159158
160159
# Needed to be able to run conda index
161160
- name: Install conda-build
162-
run: mamba install conda-build conda-index
161+
run: conda install conda-build conda-index
163162

164163
- name: Create conda channel
165164
run: python -m conda_index ${{ env.CHANNEL_PATH }}
@@ -170,7 +169,7 @@ jobs:
170169
cat ${{ env.VER_JSON_PATH }}
171170
172171
- 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 }}
172+
run: conda install ${{ env.PACKAGE_NAME }}=${{ env.PACKAGE_VERSION }} pytest intel::intel-opencl-rt python=${{ matrix.python }} -c ${{ env.CHANNEL_PATH }}
174173

175174
- name: Setup OpenCL CPU device
176175
if: runner.os == 'Windows'

0 commit comments

Comments
 (0)