From 93d8fafeb0db1135f7da99ebf7a6bd765c15626d Mon Sep 17 00:00:00 2001 From: jfranmatheu <45881831+jfranmatheu@users.noreply.github.com> Date: Wed, 12 Feb 2025 18:58:30 +0100 Subject: [PATCH] build-cython: Set architecture based on build target --- .github/workflows/build_cython.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_cython.yml b/.github/workflows/build_cython.yml index 0cadde83..874728c8 100644 --- a/.github/workflows/build_cython.yml +++ b/.github/workflows/build_cython.yml @@ -71,9 +71,11 @@ jobs: if [ "${{ matrix.os }}" == "windows-latest" ]; then echo "Windows build - keeping original names" elif [ "${{ matrix.os }}" == "macos-latest" ]; then + # Set architecture based on build target if [ "${{ matrix.target }}" == "intel" ]; then arch="x86_64" - else + elif [ "${{ matrix.target }}" == "native" ]; then + # For native builds, use the actual architecture arch=$(uname -m) fi echo "Target architecture: ${arch}"