-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automate building wheels for common build dependencies
- Loading branch information
Showing
6 changed files
with
104 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Only add build system requirements here or dependencies | ||
# which should be build for each new release here! | ||
# The versions are updated with dependabot daily. | ||
|
||
# Anything else should be build as part of the regular | ||
# requirements wheel build. | ||
|
||
cffi==1.17.1 | ||
cython==3.0.11 | ||
mysqlclient==2.2.6 | ||
ninja==1.11.1.2 | ||
numpy==2.1.3 | ||
psycopg2==2.9.10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
name: Build common wheels | ||
|
||
# yamllint disable-line rule:truthy | ||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: "0 2 * * *" # every day at 02:00 | ||
pull_request: | ||
branches: | ||
- dev | ||
paths: | ||
- ".github/workflows/wheels-common.yml" | ||
- ".github/workflows/wheel_build/requirements_wheels.txt" | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref_name}} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
init: | ||
name: Initialize wheels builder | ||
if: github.repository_owner == 'home-assistant' | ||
runs-on: ubuntu-latest | ||
outputs: | ||
architectures: ${{ steps.info.outputs.architectures }} | ||
steps: | ||
- name: Checkout the repository | ||
uses: actions/[email protected] | ||
|
||
- name: Get information | ||
id: info | ||
uses: home-assistant/actions/helpers/info@master | ||
|
||
- name: Write env-file | ||
run: | | ||
( | ||
# Fix out of memory issues with rust | ||
echo "CARGO_NET_GIT_FETCH_WITH_CLI=true" | ||
) > .env_file | ||
- name: Upload env_file | ||
uses: actions/[email protected] | ||
with: | ||
name: env_file | ||
path: ./.env_file | ||
include-hidden-files: true | ||
overwrite: true | ||
|
||
wheels: | ||
name: Build common wheels | ||
if: github.repository_owner == 'home-assistant' | ||
needs: init | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
abi: ["cp312", "cp313"] | ||
arch: ${{ fromJson(needs.init.outputs.architectures) }} | ||
steps: | ||
- name: Check out code from GitHub | ||
uses: actions/[email protected] | ||
|
||
- name: Download env_file | ||
uses: actions/[email protected] | ||
with: | ||
name: env_file | ||
|
||
- name: Build wheels | ||
uses: home-assistant/[email protected] | ||
with: | ||
abi: ${{ matrix.abi }} | ||
tag: musllinux_1_2 | ||
arch: ${{ matrix.arch }} | ||
wheels-key: ${{ secrets.WHEELS_KEY }} | ||
env-file: true | ||
apk: "mariadb-dev;postgresql-dev;libffi-dev;openblas-dev" | ||
skip-binary: "cython" | ||
requirements: ".github/workflows/wheel_build/requirements_wheel.txt" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters