Skip to content

Commit

Permalink
Use micromamba to create conda environments in Wheel build
Browse files Browse the repository at this point in the history
  • Loading branch information
xhochy committed Aug 16, 2023
1 parent 44e9a97 commit 3c9a47b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ jobs:
uses: docker/setup-qemu-action@v2
with:
platforms: all
- name: Set up micromamba
uses: mamba-org/setup-micromamba@d05808540d968a55ca33c798e0661fb98f533c73
- name: Build wheels
uses: pypa/[email protected]
env:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/build_wheels_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,14 @@ jobs:
uses: docker/setup-qemu-action@v2
with:
platforms: all
- name: Set up micromamba
uses: mamba-org/setup-micromamba@d05808540d968a55ca33c798e0661fb98f533c73
- name: Build wheels
uses: pypa/[email protected]
env:
CIBW_ARCHS_LINUX: auto aarch64
CIBW_ARCHS_MACOS: x86_64 arm64
CIBW_TEST_SKIP: '*-macosx_arm64'

- uses: actions/upload-artifact@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion build_tools/prepare_macos_wheel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ else
CONDA_CHANNEL="conda-forge/osx-64"
fi

conda create -y -n build -c $CONDA_CHANNEL jemalloc-local xsimd llvm-openmp
micromamba create -y -p $CONDA/envs/build -c $CONDA_CHANNEL jemalloc-local xsimd llvm-openmp

0 comments on commit 3c9a47b

Please sign in to comment.