Skip to content

Commit bca868a

Browse files
committed
run inside docker container
1 parent a2c5b66 commit bca868a

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.semaphore/semaphore.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ blocks:
126126
commands:
127127
- sem-version python 3.8
128128
- python -m pip install --upgrade pip
129-
- PIP_INSTALL_OPTIONS="--user" tools/wheels/build-wheels.sh "${LIBRDKAFKA_VERSION#v}" wheelhouse
129+
- ls -lrt
130+
- docker run -e OS_NAME='linux' -e ARCH='arm64' -e CIBW_ARCHS='aarch64' -w /io/ -v `pwd`:/io quay.io/pypa/manylinux2014_aarch64 tools/wheels/build-wheels.sh "${LIBRDKAFKA_VERSION#v}" wheelhouse
130131
- tar -czf wheelhouse-linux-${ARCH}.tgz wheelhouse
131132
- artifact push workflow wheelhouse-linux-${ARCH}.tgz

tools/wheels/build-wheels.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ set -ex
2626

2727
[[ -d $wheeldir ]] || mkdir -p "$wheeldir"
2828

29+
yum install -y python3
30+
2931
ARCH=${ARCH:-x64}
3032

3133
case $OSTYPE in
@@ -49,10 +51,9 @@ case $OSTYPE in
4951
;;
5052
esac
5153

52-
5354
$this_dir/install-librdkafka.sh $librdkafka_version dest
5455

55-
install_pkgs=cibuildwheel==2.11.2
56+
install_pkgs=cibuildwheel==2.8.1
5657

5758
python3 -m pip install ${PIP_INSTALL_OPTS} $install_pkgs ||
5859
pip3 install ${PIP_INSTALL_OPTS} $install_pkgs
@@ -69,4 +70,3 @@ for f in $wheeldir/*whl ; do
6970
echo $f
7071
unzip -l $f
7172
done
72-

0 commit comments

Comments
 (0)