Skip to content

Commit e430bde

Browse files
committed
Corrections to CI configuration.
1 parent 59f3557 commit e430bde

File tree

2 files changed

+16
-14
lines changed

2 files changed

+16
-14
lines changed

.github/workflows/wheels-dependencies.sh

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,24 @@
33
# Safety check - Pillow builds require that CIBW_ARCHS is set, and that it only
44
# contains a single value (even though cibuildwheel allows multiple values in
55
# CIBW_ARCHS).
6-
if [[ -z "$CIBW_ARCHS" ]]; then
7-
echo "ERROR: Pillow builds require CIBW_ARCHS be defined."
8-
exit 1
9-
fi
10-
if [[ "$CIBW_ARCHS" == *" "* ]]; then
11-
echo "ERROR: Pillow builds only support a single architecture in CIBW_ARCHS."
12-
exit 1
13-
fi
6+
echo "ENV CHECK: CIBW_ARCHS=$CIBW_ARCHS"
7+
function check_cibw_archs {
8+
if [[ -z "$CIBW_ARCHS" ]]; then
9+
echo "ERROR: Pillow builds require CIBW_ARCHS be defined."
10+
exit 1
11+
fi
12+
if [[ "$CIBW_ARCHS" == *" "* ]]; then
13+
echo "ERROR: Pillow builds only support a single architecture in CIBW_ARCHS."
14+
exit 1
15+
fi
16+
}
1417

1518
# Setup that needs to be done before multibuild utils are invoked. Process
1619
# potential cross-build platforms before native platforms to ensure that we pick
1720
# up the cross environment.
1821
PROJECTDIR=$(pwd)
1922
if [[ "$CIBW_PLATFORM" == "ios" ]]; then
23+
check_cibw_archs
2024
# On iOS, CIBW_ARCHS is actually a multi-arch - arm64_iphoneos,
2125
# arm64_iphonesimulator or x86_64_iphonesimulator. Split into the CPU
2226
# platform, and the iOS SDK.
@@ -65,6 +69,7 @@ if [[ "$CIBW_PLATFORM" == "ios" ]]; then
6569
HOST_MESON_FLAGS="--cross-file $WORKDIR/meson-cross.txt -Dprefer_static=true -Ddefault_library=static"
6670

6771
elif [[ "$(uname -s)" == "Darwin" ]]; then
72+
check_cibw_archs
6873
# Build macOS dependencies in `build/darwin`
6974
# Install them into `build/deps/darwin`
7075
PLAT="${CIBW_ARCHS:-$AUDITWHEEL_ARCH}"

.github/workflows/wheels.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -96,20 +96,17 @@ jobs:
9696
- name: "iOS arm64 device"
9797
platform: ios
9898
os: macos-13
99-
cibw_arch: arm64
100-
build: "*iphoneos"
99+
cibw_arch: arm64_iphoneos
101100
iphoneos_deployment_target: "13.0"
102101
- name: "iOS arm64 simulator"
103102
platform: ios
104103
os: macos-13
105-
cibw_arch: arm64
106-
build: "*iphonesimulator"
104+
cibw_arch: arm64_iphonesimulator
107105
iphoneos_deployment_target: "13.0"
108106
- name: "iOS x86_64 simulator"
109107
platform: ios
110108
os: macos-latest
111-
cibw_arch: x86_64
112-
build: "*iphonesimulator"
109+
cibw_arch: x86_64_iphonesimulator
113110
iphoneos_deployment_target: "13.0"
114111
steps:
115112
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)