From 936e28ec1a8bd24b54d2720a63744c406f6f9d77 Mon Sep 17 00:00:00 2001 From: Agriya Khetarpal <74401230+agriyakhetarpal@users.noreply.github.com> Date: Mon, 22 Apr 2024 14:11:26 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=9B=A9=EF=B8=8F=20Use=20aarch64=20Linux?= =?UTF-8?q?=20runners=20from=20BuildJet=20(#81)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 🛩️ Try buildjet aarch64 Linux runners * 🧪 Test Linux aarch64 run [buildjet] * Use `cibuildwheel` with BuildJet runners --- .github/workflows/ci.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3df457f..a53504f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: @@ -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 }}