Skip to content

Commit 4330d68

Browse files
adeepnjethome-bot
authored andcommitted
update workflows
1 parent 49645d7 commit 4330d68

File tree

3 files changed

+51
-43
lines changed

3 files changed

+51
-43
lines changed

.github/workflows/jh-builder.yml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@ jobs:
2727
publish: ${{ steps.version.outputs.publish }}
2828
steps:
2929
- name: Checkout the repository
30-
uses: actions/checkout@v4.1.7
30+
uses: actions/checkout@v4.2.0
3131
with:
3232
fetch-depth: 0
3333

3434
- name: update build.yaml
3535
run: cp -f build-jethub.yaml build.yaml
3636

3737
- name: Set up Python ${{ env.DEFAULT_PYTHON }}
38-
uses: actions/setup-python@v5.1.0
38+
uses: actions/setup-python@v5.2.0
3939
with:
4040
python-version: ${{ env.DEFAULT_PYTHON }}
4141

@@ -74,7 +74,7 @@ jobs:
7474
run: find ./homeassistant/components/*/translations -name "*.json" | tar zcvf translations.tar.gz -T -
7575

7676
- name: Upload translations
77-
uses: actions/upload-artifact@v4.3.4
77+
uses: actions/upload-artifact@v4.4.0
7878
with:
7979
name: translations
8080
path: translations.tar.gz
@@ -96,7 +96,7 @@ jobs:
9696
arch: ${{ fromJson(needs.init.outputs.architectures) }}
9797
steps:
9898
- name: Checkout the repository
99-
uses: actions/checkout@v4.1.7
99+
uses: actions/checkout@v4.2.0
100100

101101
- name: update build.yaml
102102
run: cp -f build-jethub.yaml build.yaml
@@ -125,14 +125,14 @@ jobs:
125125

126126
- name: Set up Python ${{ env.DEFAULT_PYTHON }}
127127
if: needs.init.outputs.channel == 'dev'
128-
uses: actions/setup-python@v5.1.0
128+
uses: actions/setup-python@v5.2.0
129129
with:
130130
python-version: ${{ env.DEFAULT_PYTHON }}
131131

132132
- name: Set up yq
133133
run: |
134134
BINARY=yq_linux_amd64
135-
VERSION=v4.35.1
135+
VERSION=v4.44.2
136136
wget https://github.com/mikefarah/yq/releases/download/${VERSION}/${BINARY}.tar.gz -O - |\
137137
tar xz && sudo mv ${BINARY} /usr/bin/yq && sudo chmod +x /usr/bin/yq
138138
@@ -142,7 +142,7 @@ jobs:
142142
env:
143143
UV_PRERELEASE: allow
144144
run: |
145-
python3 -m pip install "$(grep '^uv' < requirements_test.txt)"
145+
python3 -m pip install "$(grep '^uv' < requirements.txt)"
146146
uv pip install packaging tomli
147147
uv pip install .
148148
python3 script/version_bump.py nightly --set-nightly-version "${{ needs.init.outputs.version }}"
@@ -206,14 +206,14 @@ jobs:
206206
echo "${{ github.sha }};${{ github.ref }};${{ github.event_name }};${{ github.actor }}" > rootfs/OFFICIAL_IMAGE
207207
208208
- name: Login to GitHub Container Registry
209-
uses: docker/login-action@v3.2.0
209+
uses: docker/login-action@v3.3.0
210210
with:
211211
registry: ghcr.io
212212
username: ${{ github.repository_owner }}
213213
password: ${{ secrets.GITHUB_TOKEN }}
214214

215215
- name: Build base image
216-
uses: jethub-homeassistant/builder@2024.03.5
216+
uses: jethub-homeassistant/builder@2024.08.2
217217
with:
218218
args: |
219219
$BUILD_ARGS \
@@ -261,7 +261,7 @@ jobs:
261261
- tinker
262262
steps:
263263
- name: Checkout the repository
264-
uses: actions/checkout@v4.1.7
264+
uses: actions/checkout@v4.2.0
265265

266266
- name: update build.yaml
267267
run: cp -f build-jethub.yaml build.yaml
@@ -278,14 +278,14 @@ jobs:
278278
fi
279279
280280
- name: Login to GitHub Container Registry
281-
uses: docker/login-action@v3.2.0
281+
uses: docker/login-action@v3.3.0
282282
with:
283283
registry: ghcr.io
284284
username: ${{ github.repository_owner }}
285285
password: ${{ secrets.GITHUB_TOKEN }}
286286

287287
- name: Build base image
288-
uses: jethub-homeassistant/builder@2024.03.5
288+
uses: jethub-homeassistant/builder@2024.08.2
289289
with:
290290
args: |
291291
$BUILD_ARGS \
@@ -300,7 +300,7 @@ jobs:
300300
runs-on: ubuntu-latest
301301
steps:
302302
- name: Checkout the repository
303-
uses: actions/checkout@v4.1.7
303+
uses: actions/checkout@v4.2.0
304304

305305
- name: update build.yaml
306306
run: cp -f build-jethub.yaml build.yaml
@@ -343,10 +343,10 @@ jobs:
343343
registry: ["ghcr.io/jethub-homeassistant", "cr.jethome.work/ha"]
344344
steps:
345345
- name: Checkout the repository
346-
uses: actions/checkout@v4.1.7
346+
uses: actions/checkout@v4.2.0
347347

348348
- name: Install Cosign
349-
uses: sigstore/cosign-installer@v3.5.0
349+
uses: sigstore/cosign-installer@v3.6.0
350350
with:
351351
cosign-release: "v2.2.3"
352352

@@ -355,15 +355,15 @@ jobs:
355355

356356
- name: Login to DockerHub
357357
if: matrix.registry == 'cr.jethome.work/ha'
358-
uses: docker/login-action@v3.2.0
358+
uses: docker/login-action@v3.3.0
359359
with:
360360
registry: cr.jethome.work
361361
username: ${{ secrets.CR_USERNAME }}
362362
password: ${{ secrets.CR_TOKEN }}
363363

364364
- name: Login to GitHub Container Registry
365365
if: matrix.registry == 'ghcr.io/jethub-homeassistant'
366-
uses: docker/login-action@v3.2.0
366+
uses: docker/login-action@v3.3.0
367367
with:
368368
registry: ghcr.io
369369
username: ${{ github.repository_owner }}

.github/workflows/jh-translations.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ jobs:
2222
runs-on: ${{ vars.RUNNER }}
2323
steps:
2424
- name: Checkout the repository
25-
uses: actions/checkout@v4.1.7
25+
uses: actions/checkout@v4.2.0
2626

2727
- name: Set up Python ${{ env.DEFAULT_PYTHON }}
28-
uses: actions/setup-python@v5.1.0
28+
uses: actions/setup-python@v5.2.0
2929
with:
3030
python-version: ${{ env.DEFAULT_PYTHON }}
3131

.github/workflows/jh-wheels.yml

Lines changed: 32 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ jobs:
3434
architectures: ${{ steps.info.outputs.architectures }}
3535
steps:
3636
- name: Checkout the repository
37-
uses: actions/checkout@v4.1.7
37+
uses: actions/checkout@v4.2.0
3838

3939
- name: Set up Python ${{ env.DEFAULT_PYTHON }}
4040
id: python
41-
uses: actions/setup-python@v5.1.0
41+
uses: actions/setup-python@v5.2.0
4242
with:
4343
python-version: ${{ env.DEFAULT_PYTHON }}
4444
check-latest: true
@@ -48,7 +48,7 @@ jobs:
4848
python -m venv venv
4949
. venv/bin/activate
5050
python --version
51-
pip install "$(grep '^uv' < requirements_test.txt)"
51+
pip install "$(grep '^uv' < requirements.txt)"
5252
uv pip install -r requirements.txt
5353
5454
- name: Get information
@@ -84,14 +84,15 @@ jobs:
8484
) > .env_file
8585
8686
- name: Upload env_file
87-
uses: actions/upload-artifact@v4.3.4
87+
uses: actions/upload-artifact@v4.4.0
8888
with:
8989
name: env_file
9090
path: ./.env_file
91+
include-hidden-files: true
9192
overwrite: true
9293

9394
- name: Upload requirements_diff
94-
uses: actions/upload-artifact@v4.3.4
95+
uses: actions/upload-artifact@v4.4.0
9596
with:
9697
name: requirements_diff
9798
path: ./requirements_diff.txt
@@ -103,7 +104,7 @@ jobs:
103104
python -m script.gen_requirements_all ci
104105
105106
- name: Upload requirements_all_wheels
106-
uses: actions/upload-artifact@v4.3.4
107+
uses: actions/upload-artifact@v4.4.0
107108
with:
108109
name: requirements_all_wheels
109110
path: ./requirements_all_wheels_*.txt
@@ -120,7 +121,7 @@ jobs:
120121
arch: ${{ fromJson(needs.init.outputs.architectures) }}
121122
steps:
122123
- name: Checkout the repository
123-
uses: actions/checkout@v4.1.7
124+
uses: actions/checkout@v4.2.0
124125

125126
- name: Download env_file
126127
uses: actions/[email protected]
@@ -132,6 +133,12 @@ jobs:
132133
with:
133134
name: requirements_diff
134135

136+
- name: Adjust build env
137+
run: |
138+
# Don't build wheels for uv as uv requires a greater version of rust as currently available on alpine
139+
sed -i "/uv/d" requirements.txt
140+
sed -i "/uv/d" requirements_diff.txt
141+
135142
- name: Build wheels
136143
uses: jethub-homeassistant/[email protected]
137144
with:
@@ -141,7 +148,7 @@ jobs:
141148
wheels-key: ${{ secrets.WHEELS_KEY }}
142149
env-file: true
143150
apk: "libffi-dev;openssl-dev;yaml-dev;nasm"
144-
skip-binary: aiohttp
151+
skip-binary: aiohttp;multidict;yarl
145152
constraints: "homeassistant/package_constraints.txt"
146153
requirements-diff: "requirements_diff.txt"
147154
requirements: "requirements.txt"
@@ -158,7 +165,7 @@ jobs:
158165
arch: ${{ fromJson(needs.init.outputs.architectures) }}
159166
steps:
160167
- name: Checkout the repository
161-
uses: actions/checkout@v4.1.7
168+
uses: actions/checkout@v4.2.0
162169

163170
- name: Download env_file
164171
uses: actions/[email protected]
@@ -175,6 +182,18 @@ jobs:
175182
with:
176183
name: requirements_all_wheels
177184

185+
- name: Adjust build env
186+
run: |
187+
if [ "${{ matrix.arch }}" = "i386" ]; then
188+
echo "NPY_DISABLE_SVML=1" >> .env_file
189+
fi
190+
191+
# Do not pin numpy in wheels building
192+
sed -i "/numpy/d" homeassistant/package_constraints.txt
193+
# Don't build wheels for uv as uv requires a greater version of rust as currently available on alpine
194+
sed -i "/uv/d" requirements.txt
195+
sed -i "/uv/d" requirements_diff.txt
196+
178197
- name: Split requirements all
179198
run: |
180199
# We split requirements all into multiple files.
@@ -188,22 +207,11 @@ jobs:
188207
# Some dependencies still require 'cython<3'
189208
# and don't yet use isolated build environments.
190209
# Build these first.
191-
# grpcio: https://github.com/grpc/grpc/issues/33918
192210
# pydantic: https://github.com/pydantic/pydantic/issues/7689
193211
194212
touch requirements_old-cython.txt
195-
cat homeassistant/package_constraints.txt | grep 'grpcio==' >> requirements_old-cython.txt
196213
cat homeassistant/package_constraints.txt | grep 'pydantic==' >> requirements_old-cython.txt
197214
198-
- name: Adjust build env
199-
run: |
200-
if [ "${{ matrix.arch }}" = "i386" ]; then
201-
echo "NPY_DISABLE_SVML=1" >> .env_file
202-
fi
203-
204-
# Do not pin numpy in wheels building
205-
sed -i "/numpy/d" homeassistant/package_constraints.txt
206-
207215
- name: Build wheels (old cython)
208216
uses: jethub-homeassistant/[email protected]
209217
with:
@@ -213,7 +221,7 @@ jobs:
213221
wheels-key: ${{ secrets.WHEELS_KEY }}
214222
env-file: true
215223
apk: "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;uchardet-dev"
216-
skip-binary: aiohttp;charset-normalizer;grpcio;SQLAlchemy;protobuf;pydantic
224+
skip-binary: aiohttp;charset-normalizer;grpcio;multidict;SQLAlchemy;protobuf;pydantic;pymicro-vad;yarl
217225
constraints: "homeassistant/package_constraints.txt"
218226
requirements-diff: "requirements_diff.txt"
219227
requirements: "requirements_old-cython.txt"
@@ -228,7 +236,7 @@ jobs:
228236
wheels-key: ${{ secrets.WHEELS_KEY }}
229237
env-file: true
230238
apk: "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;uchardet-dev;nasm"
231-
skip-binary: aiohttp;charset-normalizer;grpcio;SQLAlchemy;protobuf;pydantic
239+
skip-binary: aiohttp;charset-normalizer;grpcio;multidict;SQLAlchemy;protobuf;pydantic;pymicro-vad;yarl
232240
constraints: "homeassistant/package_constraints.txt"
233241
requirements-diff: "requirements_diff.txt"
234242
requirements: "requirements_all.txtaa"
@@ -242,7 +250,7 @@ jobs:
242250
wheels-key: ${{ secrets.WHEELS_KEY }}
243251
env-file: true
244252
apk: "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;uchardet-dev;nasm"
245-
skip-binary: aiohttp;charset-normalizer;grpcio;SQLAlchemy;protobuf;pydantic
253+
skip-binary: aiohttp;charset-normalizer;grpcio;multidict;SQLAlchemy;protobuf;pydantic;pymicro-vad;yarl
246254
constraints: "homeassistant/package_constraints.txt"
247255
requirements-diff: "requirements_diff.txt"
248256
requirements: "requirements_all.txtab"
@@ -256,7 +264,7 @@ jobs:
256264
wheels-key: ${{ secrets.WHEELS_KEY }}
257265
env-file: true
258266
apk: "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;uchardet-dev;nasm"
259-
skip-binary: aiohttp;charset-normalizer;grpcio;SQLAlchemy;protobuf;pydantic
267+
skip-binary: aiohttp;charset-normalizer;grpcio;multidict;SQLAlchemy;protobuf;pydantic;pymicro-vad;yarl
260268
constraints: "homeassistant/package_constraints.txt"
261269
requirements-diff: "requirements_diff.txt"
262270
requirements: "requirements_all.txtac"

0 commit comments

Comments
 (0)