mirror of
https://github.com/home-assistant/core.git
synced 2025-07-27 07:07:28 +00:00
Split wheels building of all requirements (#85564)
This commit is contained in:
parent
8983f665cf
commit
b6316b4904
27
.github/workflows/wheels.yml
vendored
27
.github/workflows/wheels.yml
vendored
@ -144,6 +144,14 @@ jobs:
|
|||||||
sed -i "s|# opencv-python-headless|opencv-python-headless|g" ${requirement_file}
|
sed -i "s|# opencv-python-headless|opencv-python-headless|g" ${requirement_file}
|
||||||
done
|
done
|
||||||
|
|
||||||
|
- name: Split requirements all
|
||||||
|
run: |
|
||||||
|
# We split requirements all into two different files.
|
||||||
|
# This is to prevent the build from running out of memory when
|
||||||
|
# resolving packages on 32-bits systems (like armhf, armv7).
|
||||||
|
|
||||||
|
split -l $(expr $(expr $(cat requirements_all.txt | wc -l) + 1) / 2) requirements_all.txt requirements_all.txt
|
||||||
|
|
||||||
- name: Adjust build env
|
- name: Adjust build env
|
||||||
run: |
|
run: |
|
||||||
if [ "${{ matrix.arch }}" = "i386" ]; then
|
if [ "${{ matrix.arch }}" = "i386" ]; then
|
||||||
@ -159,7 +167,7 @@ jobs:
|
|||||||
# Do not pin numpy in wheels building
|
# Do not pin numpy in wheels building
|
||||||
sed -i "/numpy/d" homeassistant/package_constraints.txt
|
sed -i "/numpy/d" homeassistant/package_constraints.txt
|
||||||
|
|
||||||
- name: Build wheels
|
- name: Build wheels (part 1)
|
||||||
uses: home-assistant/wheels@2022.10.1
|
uses: home-assistant/wheels@2022.10.1
|
||||||
with:
|
with:
|
||||||
abi: cp310
|
abi: cp310
|
||||||
@ -172,4 +180,19 @@ jobs:
|
|||||||
legacy: true
|
legacy: true
|
||||||
constraints: "homeassistant/package_constraints.txt"
|
constraints: "homeassistant/package_constraints.txt"
|
||||||
requirements-diff: "requirements_diff.txt"
|
requirements-diff: "requirements_diff.txt"
|
||||||
requirements: "requirements_all.txt"
|
requirements: "requirements_all.txtaa"
|
||||||
|
|
||||||
|
- name: Build wheels (part 2)
|
||||||
|
uses: home-assistant/wheels@2022.10.1
|
||||||
|
with:
|
||||||
|
abi: cp310
|
||||||
|
tag: musllinux_1_2
|
||||||
|
arch: ${{ matrix.arch }}
|
||||||
|
wheels-key: ${{ secrets.WHEELS_KEY }}
|
||||||
|
env-file: true
|
||||||
|
apk: "libexecinfo-dev;bluez-dev;libffi-dev;openssl-dev;glib-dev;eudev-dev;libxml2-dev;libxslt-dev;libpng-dev;libjpeg-turbo-dev;tiff-dev;cups-dev;gmp-dev;mpfr-dev;mpc1-dev;ffmpeg-dev;gammu-dev;yaml-dev;openblas-dev;fftw-dev;lapack-dev;gfortran;blas-dev;eigen-dev;freetype-dev;glew-dev;harfbuzz-dev;hdf5-dev;libdc1394-dev;libtbb-dev;mesa-dev;openexr-dev;openjpeg-dev"
|
||||||
|
skip-binary: aiohttp;grpcio
|
||||||
|
legacy: true
|
||||||
|
constraints: "homeassistant/package_constraints.txt"
|
||||||
|
requirements-diff: "requirements_diff.txt"
|
||||||
|
requirements: "requirements_all.txtab"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user