Skip to content

Commit 8221758

Browse files
committed
don't run tests for arm64 cross-compiled wheels
1 parent 40f7e3c commit 8221758

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

.github/workflows/build-wheels-macosx.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ jobs:
102102
clean_code $REPO_DIR $BUILD_COMMIT
103103
echo "------- BUILD WHEEL --------"
104104
build_wheel $REPO_DIR $PLAT
105-
echo "------- INSTALL_RUN --------"
106-
install_run $PLAT
105+
#echo "------- INSTALL_RUN --------"
106+
#install_run $PLAT
107107
- name: Upload wheels to release
108108
uses: svenstaro/upload-release-action@v2
109109
if: github.event_name == 'create'

config.sh

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,12 @@ export BLOSC_VERSION="1.21.1"
2222
# custom version that sets NETCDF_PLUGIN_DIR env var
2323
function build_wheel {
2424
# Set default building method to pip
25-
export NETCDF_PLUGIN_DIR=${BUILD_PREFIX}/lib/netcdf-plugins
26-
wrap_wheel_builder build_pip_wheel $@
25+
if [[ ! -z "IS_OSX" && "$PLAT" = "arm64" ]] && [[ "$CROSS_COMPILING" = "1" ]]; then
26+
wrap_wheel_builder build_pip_wheel $@
27+
else:
28+
export NETCDF_PLUGIN_DIR=${BUILD_PREFIX}/lib/netcdf-plugins
29+
wrap_wheel_builder build_pip_wheel $@
30+
fi
2731
}
2832

2933
# add --verbose to pip
@@ -108,7 +112,6 @@ function build_netcdf {
108112
# && ls -l $HDF5_PLUGIN_PATH )
109113
# autotools build
110114
if [[ ! -z "IS_OSX" && "$PLAT" = "arm64" ]] && [[ "$CROSS_COMPILING" = "1" ]]; then
111-
unset NETCDF_PLUGIN_DIR
112115
(cd netcdf-c-${NETCDF_VERSION} \
113116
&& ./configure --prefix=$BUILD_PREFIX --enable-netcdf-4 --enable-shared --enable-dap \
114117
&& make -j4 \
@@ -252,6 +255,9 @@ function run_tests {
252255
ls -l /usr/local/lib
253256
which python
254257
cp ../netcdf4-python/test/* .
258+
if [[ ! -z "IS_OSX" && "$PLAT" = "arm64" ]] && [[ "$CROSS_COMPILING" = "1" ]]; then
259+
export NO_PLUGINS=1 # plugins not installed for arm64 cross compile
260+
fi
255261
python run_all.py
256262
}
257263

0 commit comments

Comments
 (0)