Skip to content
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

Build and test CPython x86_64 Linux wheels #11

Merged
merged 1 commit into from
Feb 22, 2023
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
12 changes: 12 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,15 @@ jobs:
- name: Run benchmark
working-directory: ./benchmark
run: python benchmark.py
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
# TODO: build wheels on other platforms
# os: [ubuntu-20.04, windows-2019, macos-11]
os: [ ubuntu-20.04 ]
steps:
- uses: actions/checkout@v3
- name: Build wheels
uses: pypa/cibuildwheel@v2.12.0
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ __pycache__
.eggs
wheelhouse
.DS_Store
.envrc
.python-version
1 change: 0 additions & 1 deletion .python-version

This file was deleted.

12 changes: 12 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[tool.cibuildwheel.linux]
# Only build CPython (no PyPy) on x86_64 architecture
build = "cp*x86_64"
before-all = [
# Install Zig on CentOS
"cd /tmp",
"curl -O https://ziglang.org/download/0.9.1/zig-linux-x86_64-0.9.1.tar.xz",
"tar xf zig-linux-x86_64-0.9.1.tar.xz",
"mv zig-linux-x86_64-0.9.1 /usr/local/bin/zig-linux-0.9.1"
]
environment = { PATH="$PATH:/usr/local/bin/zig-linux-0.9.1" }
test-command = 'python -c "import zaml; assert zaml.load() == 1"'