Skip to content

Commit

Permalink
Use BuildJet ARM runners for ARM builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Twixes committed Oct 9, 2023
1 parent f47e72f commit a3396ed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/build-hogql-parser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,12 @@ jobs:
timeout-minutes: 120 # The Linux ARM builds are painfully slow
strategy:
matrix:
os: [ubuntu-22.04, macos-12]
# ARM emulation is reasonably fast on macOS, but insanely slow (20x longer) on Linux runners
os: [ubuntu-22.04, buildjet-2vcpu-ubuntu-2204-arm, macos-12]

steps:
- uses: actions/checkout@v4

- name: Set up QEMU for Linux ARM builds
if: runner.os == 'Linux'
uses: docker/setup-qemu-action@v3
with:
platforms: linux/arm64

- uses: actions/setup-python@v3

- name: Build sdist
Expand Down
2 changes: 1 addition & 1 deletion hogql_parser/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ before-all = [
"cp out/usr/local/lib64/libantlr4-runtime.so* /usr/lib64/",
"ldconfig",
]
archs = ["x86_64", "aarch64"]
archs = ["native"] # We run x86_64 and aarch64 as separate CI jobs, and we want native in each case as emulation is slow
manylinux-x86_64-image = "manylinux_2_28"
manylinux-aarch64-image = "manylinux_2_28"

0 comments on commit a3396ed

Please sign in to comment.