Skip to content

arm support for linux #239

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 7 additions & 12 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,15 +84,11 @@ commands:
- $GITHUB_WORKSPACE
key: v1-verified-codemod-repos-{{ checksum "tests/integration/verified_codemods/codemod_data/repo_commits.json" }}-{{.Environment.CIRCLE_NODE_INDEX}}-{{.Environment.CIRCLE_NODE_TOTAL}}
build-wheels:
parameters:
base_packages:
type: boolean
default: false
steps:
- install-uv
- restore_cache:
keys:
- cibuildwheel-cache-<<pipeline.parameters.python_version>>-{{ .Environment.CIRCLE_JOB }}-{{ checksum "uv.lock" }}--{{ checksum "pyproject.toml" }}
- cibuildwheel-cache-<<pipeline.parameters.python_version>>-{{ .Environment.CIRCLE_JOB }}-{{ checksum "uv.lock" }}--{{ checksum "pyproject.toml" }}-{{ arch }}
- run:
command: |
uv run --frozen cibuildwheel --output-dir dist
Expand All @@ -102,7 +98,7 @@ commands:
- save_cache:
paths:
- /home/circleci/.cache/cibuildwheel
key: cibuildwheel-cache-<<pipeline.parameters.python_version>>-{{ .Environment.CIRCLE_JOB }}-{{ checksum "uv.lock" }}--{{ checksum "pyproject.toml" }}
key: cibuildwheel-cache-<<pipeline.parameters.python_version>>-{{ .Environment.CIRCLE_JOB }}-{{ checksum "uv.lock" }}--{{ checksum "pyproject.toml" }}-{{ arch }}
setup-uv:
steps:
- install-lfs
Expand Down Expand Up @@ -339,18 +335,14 @@ jobs:
resource_class:
type: string
default: "large"
base_packages:
type: boolean
default: false
working_directory: ~/linux-wheels
machine:
image: ubuntu-2404:2024.05.1
docker_layer_caching: true
resource_class: <<parameters.resource_class>>
steps:
- checkout
- build-wheels:
base_packages: << parameters.base_packages >>
- build-wheels
- persist_to_workspace:
root: .
paths:
Expand Down Expand Up @@ -503,7 +495,10 @@ workflows:
filters:
tags:
only: /^v.*/
base_packages: true
matrix:
parameters:
resource_class: [large, arm.large]

- osx-wheels:
filters:
tags:
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ We support

- Running Codegen in Python 3.12 – 3.13
- macOS and Linux
- We develop on macOS but our testing and production environments are Linux
- macOS is supported on Apple Silicon
- Linux is supported on x86_64 and aarch64 with glibc 2.34+
- Windows is not supported
- Python, Typescript, Javascript and React codebases

Expand Down
10 changes: 9 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,15 @@ python-levenshtein = ["Levenshtein"]
PyGithub = ["github"]
[tool.cibuildwheel]
build-frontend = "build[uv]"
skip = ["*-musllinux_i686", "*-manylinux_i686", "*-musllinux_x86_64"]
skip = [
"*-musllinux_i686",
"*-manylinux_i686",
"*-musllinux_x86_64",
"*-musllinux_aarch64",
]
environment = { "HATCH_BUILD_HOOKS_ENABLE" = "true" }
manylinux-x86_64-image = "quay.io/pypa/manylinux_2_34_x86_64"
manylinux-aarch64-image = "quay.io/pypa/manylinux_2_34_aarch64"
[tool.cibuildwheel.linux]
before-all = "curl -sSf https://sh.rustup.rs | sh -s -- -y"
environment = { "PATH" = "$HOME/.cargo/bin:$PATH" }