Skip to content

Commit

Permalink
build-cython: Set architecture based on build target
Browse files Browse the repository at this point in the history
  • Loading branch information
jfranmatheu committed Feb 12, 2025
1 parent cc5309b commit 93d8faf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/build_cython.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit 93d8faf

Please sign in to comment.