diff --git a/.github/workflows/conda-build-macos.yml b/.github/workflows/conda-build-macos.yml index d187e5be..3788cb3a 100644 --- a/.github/workflows/conda-build-macos.yml +++ b/.github/workflows/conda-build-macos.yml @@ -28,16 +28,16 @@ jobs: with: environment-name: build create-args: boa - - name: Build conda package - shell: bash -el {0} + - name: Patch osx-arm64 conda-build + if: contains(matrix.CONDA_BUILD_YML, 'osx_arm64') + # Don't test cross-compiled result (there is no emulation) and use the latest MacOS SDK. run: | - # Don't test cross-compiled result (there is no emulation) and use the latest MacOS SDK. - if grep -q "osx-arm64" ".ci_support/${{ matrix.CONDA_BUILD_YML }}.yaml"; then - CONDA_BUILD_ARGS="--no-test" - export CONDA_BUILD_SYSROOT=$(xcrun --sdk macosx --show-sdk-path) - cat <> .ci_support/${CONDA_BUILD_YML}.yaml + CONDA_BUILD_ARGS="--no-test" + export CONDA_BUILD_SYSROOT=$(xcrun --sdk macosx --show-sdk-path) + cat <> .ci_support/${CONDA_BUILD_YML}.yaml CONDA_BUILD_SYSROOT: - - "${CONDA_BUILD_SYSROOT}" + - "${CONDA_BUILD_SYSROOT}" EOF - fi - conda-mambabuild -m ".ci_support/${{ matrix.CONDA_BUILD_YML }}.yaml" conda.recipe + - name: Build conda package + shell: bash -el {0} + run: conda-mambabuild -m ".ci_support/${{ matrix.CONDA_BUILD_YML }}.yaml" conda.recipe