Skip to content

Commit 9a00775

Browse files
🎡 Add Linux armv7l wheel job
1 parent ae0d30b commit 9a00775

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/cd.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,43 @@ jobs:
293293
path: ./wheelhouse/*.whl
294294
if-no-files-found: error
295295

296+
linux_armv7l_wheels:
297+
name: armv7l-manylinux
298+
runs-on: ubuntu-latest
299+
steps:
300+
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
301+
- uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # v3.2.0
302+
with:
303+
platforms: all
304+
305+
- name: Build binary distribution (wheel) on Linux (armv7l)
306+
uses: pypa/cibuildwheel@f1859528322d7b29d4493ee241a167807661dfb4 # v2.21.2
307+
with:
308+
package-dir: .
309+
output-dir: wheelhouse
310+
env:
311+
CIBW_ARCHS_LINUX: armv7l
312+
CIBW_BEFORE_ALL_LINUX: |
313+
# GOARM=7 has been set in setup.py
314+
tarball="go1.23.0.linux-armv6l.tar.gz"
315+
curl -LJO https://golang.org/dl/$tarball
316+
mkdir $HOME/go_installed/
317+
tar -C $HOME/go_installed/ -xzf $tarball
318+
export PATH=$PATH:$HOME/go_installed/go/bin >> ~/.bashrc
319+
export PATH=$PATH:$HOME/go_installed/go/bin >> ~/.bash_profile
320+
go version
321+
CIBW_ENVIRONMENT_LINUX: PATH=$PATH:$HOME/go_installed/go/bin
322+
CIBW_TEST_COMMAND: |
323+
hugo version
324+
hugo env --logLevel debug
325+
326+
- name: Upload wheels
327+
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
328+
with:
329+
name: wheels_linux_armv7l
330+
path: ./wheelhouse/*.whl
331+
if-no-files-found: error
332+
296333
macos_amd64_wheels:
297334
name: amd64-macos
298335
runs-on: macos-13
@@ -362,6 +399,7 @@ jobs:
362399
linux_arm64_wheels,
363400
linux_s390x_wheels,
364401
linux_ppc64le_wheels,
402+
linux_armv7l_wheels,
365403
]
366404

367405
name: Publish to PyPI or TestPyPI

0 commit comments

Comments
 (0)