From b3a6cb28c7f1df11701a277b47905041028c1306 Mon Sep 17 00:00:00 2001 From: Marc Mueller <30130371+cdce8p@users.noreply.github.com> Date: Fri, 15 Nov 2024 14:28:48 +0100 Subject: [PATCH] Build common wheels --- .github/workflows/build-wheels.yml | 37 ++++++++++++++++++++++++++++++ requirements_wheels.txt | 6 +++++ 2 files changed, 43 insertions(+) create mode 100644 .github/workflows/build-wheels.yml create mode 100644 requirements_wheels.txt diff --git a/.github/workflows/build-wheels.yml b/.github/workflows/build-wheels.yml new file mode 100644 index 0000000..4d1f3eb --- /dev/null +++ b/.github/workflows/build-wheels.yml @@ -0,0 +1,37 @@ +name: Build wheels + +on: + push: + branches: + - master + pull_request: + branches: + - master + paths: + - ".github/workflows/build-wheels.yml" + - "requirements_wheels.txt" + +jobs: + wheels: + name: Build basic wheels + if: github.repository_owner == 'home-assistant' + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + abi: ["cp312", "cp313"] + arch: ["aarch64", "armhf", "armv7", "amd64", "i386"] + steps: + - name: Check out code from GitHub + uses: actions/checkout@v4.2.2 + + - name: Build wheels + uses: ./ + with: + abi: ${{ matrix.abi }} + tag: musllinux_1_2 + arch: ${{ matrix.arch }} + wheels-key: ${{ secrets.WHEELS_KEY }} + apk: "mariadb-dev;postgresql-dev;libffi-dev;openblas-dev" + skip-binary: "cython" + requirements: "requirements_wheels.txt" diff --git a/requirements_wheels.txt b/requirements_wheels.txt new file mode 100644 index 0000000..ae4dc1e --- /dev/null +++ b/requirements_wheels.txt @@ -0,0 +1,6 @@ +cffi==1.17.1 +cython==3.0.11 +mysqlclient==2.2.6 +ninja==1.11.1.1 +numpy==2.1.3 +psycopg2==2.9.10