-
-
Notifications
You must be signed in to change notification settings - Fork 272
84 lines (74 loc) · 2.1 KB
/
wheels.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
name: Build wheels
on:
push:
branches:
- master
paths:
- requirements.txt
pull_request:
branches:
- master
workflow_dispatch:
schedule:
- cron: "0 0 * * *"
jobs:
lint:
runs-on: ubuntu-latest
name: init
outputs:
requirements: ${{ steps.requirements.outputs.exist }}
apk: ${{ steps.apk.outputs.packages }}
steps:
- name: Check out code from GitHub
uses: actions/checkout@v4
- name: Get constraints
run: |
wget -O constraints.txt https://raw.githubusercontent.com/home-assistant/core/dev/homeassistant/package_constraints.txt
sed -i "/numpy/d" constraints.txt
- name: Upload constraints.txt
uses: actions/[email protected]
with:
name: constraints
path: ./constraints.txt
wheels:
runs-on: ubuntu-latest
needs: lint
name: Prepare musllinux for ${{ matrix.abi }} with ${{ matrix.arch }}
strategy:
fail-fast: false
matrix:
arch: ["aarch64", "armhf", "armv7", "amd64", "i386"]
abi: ["cp311"]
steps:
- name: Check out code from GitHub
uses: actions/checkout@v4
- name: Download constraints.txt
uses: actions/download-artifact@v3
with:
name: constraints
- name: Pull-Request test
id: test
shell: bash
run: |
if [ "${{ github.event_name }}" = "pull_request" ]; then
echo "is_test=True" >> $GITHUB_OUTPUT
else
echo "is_test=False" >> $GITHUB_OUTPUT
fi
- name: Write env-file
shell: bash
run: |
touch .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
single: True
test: ${{ steps.test.outputs.is_test }}
constraints: "constraints.txt"
requirements: "requirements.txt"
apk: "libffi-dev;rrdtool-dev;geos-dev"