From e927bde19c3a5e326e73f3c8218d2d855d6107b9 Mon Sep 17 00:00:00 2001 From: Agriya Khetarpal <74401230+agriyakhetarpal@users.noreply.github.com> Date: Mon, 22 Apr 2024 13:33:33 +0530 Subject: [PATCH] Use `cibuildwheel` with BuildJet runners --- .github/workflows/ci.yml | 33 ++++++++++++++------------------- 1 file changed, 14 insertions(+), 19 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0ec3169..9665760 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,6 +13,7 @@ concurrency: env: FORCE_COLOR: 3 + CIBW_BUILD_VERBOSITY: 2 jobs: style: @@ -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]