Skip to content

Commit

Permalink
Use cibuildwheel with BuildJet runners
Browse files Browse the repository at this point in the history
  • Loading branch information
agriyakhetarpal committed Apr 22, 2024
1 parent 554d13e commit e927bde
Showing 1 changed file with 14 additions and 19 deletions.
33 changes: 14 additions & 19 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ concurrency:

env:
FORCE_COLOR: 3
CIBW_BUILD_VERBOSITY: 2

jobs:
style:
Expand Down Expand Up @@ -78,35 +79,29 @@ jobs:

build_wheels_linux_aarch64:
needs: [style]
name: linux-aarch64-buildjet
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

- name: Set up Go toolchain
id: setup-go
uses: buildjet/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
- uses: buildjet/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version: '1.22.2'
cache: false
check-latest: true

- name: Restore Hugo builder cache
uses: buildjet/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
with:
path: ./hugo_cache/
key: linux-aarch64-buildjet-hugo-${{ steps.setup-go.outputs.go-version }}

- name: Install Python dependencies
run: python -m pip install build virtualenv nox

- name: Build binary distribution (wheel) on Linux
- name: Build binary distribution (wheel) on Linux (aarch64)
run: |
python -m build --wheel . --outdir wheelhouse/
- name: Test entry points for package
run: nox -s venv
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_TEST_COMMAND: >
hugo version
hugo env --logLevel debug
experimental:
needs: [style]
Expand Down

0 comments on commit e927bde

Please sign in to comment.