From 4fd7b9ae0fb91097eb0515f68979fa19f11ca51e Mon Sep 17 00:00:00 2001 From: Frank Harrison Date: Thu, 28 Nov 2024 18:34:14 +0000 Subject: [PATCH] chore(actions): allow --arch in github action to work We do this by removing the arch-flag overrides in pyproject.toml which seems to be respected ahead of the --arch flag on the command-line. When running this from a developer machine we should end up building whatever that developer machine can build, one/none/all archs. --- pyproject.toml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 79b53d9..296bbe3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -41,9 +41,11 @@ before-build = """\ LIBOGDF_INSTALL_PATH="$(pwd)/libOGDF" [tool.cibuildwheel.macos] -# For now build `x86_64` and `arm64` instead of `universal2` because we currently do -# not build /usr/local/lib/libOGDF.dylib under `arm64` for some reason. -archs = ["x86_64", "arm64"] +# Specify the --arch flag in the github-action, achieving the following: +# - we fall-back to default arch local-dev machines. +# - we build the best arch on the best platform for that arch in github +# actions. +# archs = ["x86_64", "arm64"] before-all = ["brew install libomp llvm"] # NOTE: we delete build/ here as we're build multiple wheels and we support # different SIMD commands on different platforms.