From 61a3734e1ef6053c014e717f873dc3433b967b0d Mon Sep 17 00:00:00 2001 From: "Uwe L. Korn" Date: Wed, 16 Aug 2023 15:58:58 +0200 Subject: [PATCH] Use micromamba to create conda environments in Wheel build --- .github/workflows/build_wheels.yml | 2 ++ .github/workflows/build_wheels_release.yml | 3 +++ build_tools/prepare_macos_wheel.sh | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_wheels.yml b/.github/workflows/build_wheels.yml index fbffbb6b..6573c9b1 100644 --- a/.github/workflows/build_wheels.yml +++ b/.github/workflows/build_wheels.yml @@ -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/cibuildwheel@v2.14.1 env: diff --git a/.github/workflows/build_wheels_release.yml b/.github/workflows/build_wheels_release.yml index 0302cd50..5f80ee51 100644 --- a/.github/workflows/build_wheels_release.yml +++ b/.github/workflows/build_wheels_release.yml @@ -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/cibuildwheel@v2.14.1 env: CIBW_ARCHS_LINUX: auto aarch64 CIBW_ARCHS_MACOS: x86_64 arm64 + CIBW_TEST_SKIP: '*-macosx_arm64' - uses: actions/upload-artifact@v3 with: diff --git a/build_tools/prepare_macos_wheel.sh b/build_tools/prepare_macos_wheel.sh index 6f8c8c35..caa8e1dc 100644 --- a/build_tools/prepare_macos_wheel.sh +++ b/build_tools/prepare_macos_wheel.sh @@ -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 +/Users/runner/micromamba-bin/micromamba create -y -p $CONDA/envs/build -c $CONDA_CHANNEL jemalloc-local xsimd llvm-openmp