diff --git a/.scripts/run_win_build.bat b/.scripts/run_win_build.bat index 82d0915..4351e1d 100755 --- a/.scripts/run_win_build.bat +++ b/.scripts/run_win_build.bat @@ -63,6 +63,11 @@ if EXIST LICENSE.txt ( echo Copying feedstock license copy LICENSE.txt "recipe\\recipe-scripts-license.txt" ) +if NOT [%HOST_PLATFORM%] == [%BUILD_PLATFORM%] ( + if [%CROSSCOMPILING_EMULATOR%] == [] ( + set "EXTRA_CB_OPTIONS=%EXTRA_CB_OPTIONS% --test skip" + ) +) if NOT [%flow_run_id%] == [] ( set "EXTRA_CB_OPTIONS=%EXTRA_CB_OPTIONS% --extra-meta flow_run_id=%flow_run_id% --extra-meta remote_url=%remote_url% --extra-meta sha=%sha%" diff --git a/conda-forge.yml b/conda-forge.yml index ff8c453..137b7be 100644 --- a/conda-forge.yml +++ b/conda-forge.yml @@ -1,7 +1,12 @@ +build_platform: + osx_arm64: osx_arm64 +conda_build: + error_overlinking: true conda_build_tool: rattler-build +conda_forge_output_validation: true github: branch_name: main tooling_branch_name: main -conda_build: - error_overlinking: true -conda_forge_output_validation: true +provider: + osx_arm64: default +test: native_and_emulated diff --git a/recipe/recipe.yaml b/recipe/recipe.yaml index d37b389..f1ca52a 100644 --- a/recipe/recipe.yaml +++ b/recipe/recipe.yaml @@ -21,6 +21,10 @@ build: requirements: build: + - if: build_platform != host_platform + then: + - python + - cross-python_${{ host_platform }} - ${{ compiler("c") }} - ${{ stdlib("c") }} host: