Skip to content

Commit 17c8629

Browse files
🏃 Add native GHA Linux arm64 runners, drop Buildjet (#207)
* 🛩️ Drop Buildjet
1 parent d3a0761 commit 17c8629

File tree

2 files changed

+4
-62
lines changed

2 files changed

+4
-62
lines changed

.github/workflows/cd.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -186,14 +186,9 @@ jobs:
186186

187187
linux_arm64_wheels:
188188
name: arm64-manylinux
189-
runs-on: buildjet-2vcpu-ubuntu-2204-arm
190-
if: github.event_name == 'release' && github.event.action == 'published'
189+
runs-on: ubuntu-22.04-arm
191190
steps:
192191
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
193-
- uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # v3.2.0
194-
with:
195-
platforms: all
196-
197192
- uses: pypa/cibuildwheel@ee63bf16da6cddfb925f542f2c7b59ad50e93969 # v2.22.0
198193
with:
199194
package-dir: .

.github/workflows/ci.yml

Lines changed: 3 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -30,27 +30,6 @@ jobs:
3030
- name: Run style checks
3131
run: pipx run pre-commit run --all-files
3232

33-
check_commit_message:
34-
needs: [style]
35-
name: Check commit message
36-
runs-on: ubuntu-latest
37-
outputs:
38-
trigger: ${{ steps.check-commit-message.outputs.trigger }}
39-
steps:
40-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
41-
- name: Check commit message
42-
id: check-commit-message
43-
run: |
44-
set -e -x
45-
COMMIT_MESSAGE=$(git log --no-merges -1 --oneline)
46-
if [[ "$GITHUB_EVENT_NAME" == pull_request &&
47-
"$COMMIT_MSG" =~ \[buildjet\] ]]; then
48-
echo "trigger=true" >> "$GITHUB_OUTPUT"
49-
fi
50-
- name: Run BuildJet runners
51-
if: steps.check-commit-message.outputs.trigger == 'true'
52-
run: echo "Running BuildJet runners"
53-
5433
build_wheels:
5534
needs: [style]
5635
name: ${{ matrix.runs-on }}-python-${{ matrix.python-version }}
@@ -59,7 +38,8 @@ jobs:
5938
fail-fast: false
6039
matrix:
6140
python-version: ["3.9", "3.12", "3.13"]
62-
runs-on: [ubuntu-latest, macos-13, macos-14, windows-latest]
41+
runs-on:
42+
[ubuntu-latest, ubuntu-22.04-arm, macos-13, macos-14, windows-latest]
6343
steps:
6444
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
6545
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
@@ -95,40 +75,7 @@ jobs:
9575
- name: Test entry points for package
9676
run: nox -s venv
9777

98-
build_wheels_linux_aarch64:
99-
needs: [check_commit_message]
100-
name: linux-aarch64-buildjet-python-3.12
101-
runs-on: buildjet-2vcpu-ubuntu-2204-arm
102-
if: ${{ needs.check_commit_message.outputs.trigger == 'true' }}
103-
steps:
104-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
105-
- uses: buildjet/setup-python@v5.2.0
106-
- uses: buildjet/setup-go@af85c03c2736c2267d5afe4d5952023a3b64bf89 # v5.0.0
107-
with:
108-
go-version: "1.23.4"
109-
cache: false
110-
check-latest: true
111-
112-
- name: Build binary distribution (wheel) on Linux (aarch64)
113-
run: |
114-
python -m pip install cibuildwheel
115-
python -m cibuildwheel --output-dir wheelhouse
116-
env:
117-
CIBW_BUILD: "cp312-*"
118-
CIBW_ARCHS_LINUX: aarch64
119-
CIBW_BEFORE_ALL_LINUX: |
120-
tarball="go1.23.4.linux-arm64.tar.gz"
121-
curl -LJO https://golang.org/dl/$tarball
122-
mkdir $HOME/go_installed/
123-
tar -C $HOME/go_installed/ -xzf $tarball
124-
export PATH=$PATH:$HOME/go_installed/go/bin >> ~/.bashrc
125-
export PATH=$PATH:$HOME/go_installed/go/bin >> ~/.bash_profile
126-
go version
127-
CIBW_ENVIRONMENT_LINUX: PATH=$PATH:$HOME/go_installed/go/bin
128-
CIBW_TEST_COMMAND: |
129-
hugo version
130-
hugo env --logLevel debug
131-
78+
# TODO: add aarch64 to x86_64 cross-compilation for Linux
13279
experimental:
13380
needs: [style]
13481
name: zig-${{ matrix.runs-on }}-${{ matrix.architecture }}-python-${{ matrix.python-version }}

0 commit comments

Comments
 (0)