Skip to content

Commit

Permalink
🛩️ Use aarch64 Linux runners from BuildJet (#81)
Browse files Browse the repository at this point in the history
* 🛩️ Try buildjet aarch64 Linux runners
* 🧪 Test Linux aarch64 run [buildjet]
* Use `cibuildwheel` with BuildJet runners
  • Loading branch information
agriyakhetarpal committed Apr 22, 2024
1 parent 8892cf2 commit 936e28e
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ concurrency:

env:
FORCE_COLOR: 3
CIBW_BUILD_VERBOSITY: 2
CIBW_BUILD_FRONTEND: "pip" # use pip for now, not build – missing buildDate otherwise

jobs:
style:
Expand Down Expand Up @@ -76,6 +78,34 @@ jobs:
- name: Test entry points for package
run: nox -s venv

build_wheels_linux_aarch64:
needs: [style]
name: linux-aarch64-buildjet-python-3.12
runs-on: buildjet-2vcpu-ubuntu-2204-arm
steps:
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
- uses: buildjet/setup-python@v5
- uses: buildjet/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version: '1.22.2'
cache: false
check-latest: true

- name: Build binary distribution (wheel) on Linux (aarch64)
run: |
python -m pip install cibuildwheel
python -m cibuildwheel --output-dir wheelhouse
env:
CIBW_BUILD: "cp312-*"
CIBW_ARCHS_LINUX: aarch64
CIBW_BEFORE_ALL_LINUX: bash scripts/ci/tools/linux/install_go.sh
CIBW_ENVIRONMENT_LINUX: PATH=$PATH:$HOME/go_installed/go/bin
CIBW_SKIP: "pp* *musllinux*"
CIBW_MANYLINUX_AARCH64_IMAGE: "manylinux_2_28"
CIBW_TEST_COMMAND: >
hugo version
hugo env --logLevel debug
experimental:
needs: [style]
name: ${{ matrix.runs-on }}-${{ matrix.architecture }}-python-${{ matrix.python-version }}
Expand Down

0 comments on commit 936e28e

Please sign in to comment.