Skip to content

Commit

Permalink
🎡 Add Linux armv7l wheel job
Browse files Browse the repository at this point in the history
  • Loading branch information
agriyakhetarpal committed Oct 3, 2024
1 parent ae0d30b commit 84cc88f
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,44 @@ jobs:
path: ./wheelhouse/*.whl
if-no-files-found: error

linux_armv7l_wheels:
name: armv7l-manylinux
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # v3.2.0
with:
platforms: all

- name: Build binary distribution (wheel) on Linux (armv7l)
uses: pypa/cibuildwheel@f1859528322d7b29d4493ee241a167807661dfb4 # v2.21.2
with:
package-dir: .
output-dir: wheelhouse
env:
CIBW_BUILD: "cp312-*"
CIBW_ARCHS_LINUX: armv7l
CIBW_BEFORE_ALL_LINUX: |
# GOARM=7 has been set in setup.py
tarball="go1.23.0.linux-armv6l.tar.gz"
curl -LJO https://golang.org/dl/$tarball
mkdir $HOME/go_installed/
tar -C $HOME/go_installed/ -xzf $tarball
export PATH=$PATH:$HOME/go_installed/go/bin >> ~/.bashrc
export PATH=$PATH:$HOME/go_installed/go/bin >> ~/.bash_profile
go version
CIBW_ENVIRONMENT_LINUX: PATH=$PATH:$HOME/go_installed/go/bin
CIBW_TEST_COMMAND: |
hugo version
hugo env --logLevel debug
- name: Upload wheels
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
with:
name: wheels_linux_armv7l
path: ./wheelhouse/*.whl
if-no-files-found: error

macos_amd64_wheels:
name: amd64-macos
runs-on: macos-13
Expand Down Expand Up @@ -362,6 +400,7 @@ jobs:
linux_arm64_wheels,
linux_s390x_wheels,
linux_ppc64le_wheels,
linux_armv7l_wheels,
]

name: Publish to PyPI or TestPyPI
Expand Down

0 comments on commit 84cc88f

Please sign in to comment.