[CI/Build] Cross python wheel (#6394)

This commit is contained in:
Robert Shaw
2024-07-14 21:54:46 -04:00
committed by GitHub
parent 61e85dbad8
commit a754dc2cb9
2 changed files with 4 additions and 38 deletions

View File

@@ -104,7 +104,7 @@ RUN --mount=type=cache,target=/root/.cache/pip \
&& export SCCACHE_REGION=us-west-2 \
&& export CMAKE_BUILD_TYPE=Release \
&& sccache --show-stats \
&& python3 setup.py bdist_wheel --dist-dir=dist \
&& python3 setup.py bdist_wheel --dist-dir=dist --py-limited-api=cp38 \
&& sccache --show-stats; \
fi
@@ -112,7 +112,7 @@ ENV CCACHE_DIR=/root/.cache/ccache
RUN --mount=type=cache,target=/root/.cache/ccache \
--mount=type=cache,target=/root/.cache/pip \
if [ "$USE_SCCACHE" != "1" ]; then \
python3 setup.py bdist_wheel --dist-dir=dist; \
python3 setup.py bdist_wheel --dist-dir=dist --py-limited-api=cp38; \
fi
# check the size of the wheel, we cannot upload wheels larger than 100MB