Skip to content

Commit 8b018cf

Browse files
Support Building of ARM CI/CD (#1578)
* Support Building of ARM CI/CD * Update ci/build_darwin.sh Co-authored-by: Afroz Alam <[email protected]> --------- Co-authored-by: Afroz Alam <[email protected]>
1 parent 65f34f2 commit 8b018cf

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

ci/build_darwin.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,13 @@
33
# Build Snowflake Python Connector on Mac
44
# NOTES:
55
# - To compile only a specific version(s) pass in versions like: `./build_darwin.sh "3.7 3.8"`
6-
PYTHON_VERSIONS="${1:-3.7 3.8 3.9 3.10 3.11}"
6+
arch=$(uname -m)
7+
if [[ "$arch" == "arm64" ]]; then
8+
PYTHON_VERSIONS="${1:-3.8 3.9 3.10 3.11}"
9+
else
10+
PYTHON_VERSIONS="${1:-3.7 3.8 3.9 3.10 3.11}"
11+
fi
12+
713
THIS_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
814
CONNECTOR_DIR="$(dirname "${THIS_DIR}")"
915
DIST_DIR="$CONNECTOR_DIR/dist"

0 commit comments

Comments
 (0)