From 84cc88f94038ec8302cd9f6f2994b8e90cd97edc Mon Sep 17 00:00:00 2001 From: Agriya Khetarpal <74401230+agriyakhetarpal@users.noreply.github.com> Date: Thu, 3 Oct 2024 18:05:30 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A1=20Add=20Linux=20armv7l=20wheel=20j?= =?UTF-8?q?ob?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/cd.yml | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 486f35e..c6b2f35 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -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 @@ -362,6 +400,7 @@ jobs: linux_arm64_wheels, linux_s390x_wheels, linux_ppc64le_wheels, + linux_armv7l_wheels, ] name: Publish to PyPI or TestPyPI