Skip to content

Commit

Permalink
test build wheels
Browse files Browse the repository at this point in the history
  • Loading branch information
fishjojo committed Mar 5, 2024
1 parent a2b75f4 commit 345837c
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
29 changes: 29 additions & 0 deletions .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Build

on: [push, pull_request]

jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, macos-12]

steps:
- uses: actions/checkout@v4

- name: Build wheels
uses: pypa/[email protected]
env:
CIBW_ARCHS_LINUX: "x86_64"
CIBW_ARCHS_MACOS: "x86_64"
with:
package-dir: pyscfadlib
output-dir: pyscfadlib/wheelhouse
config-file: "{package}/pyproject.toml"

- uses: actions/upload-artifact@v4
with:
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
path: pyscfadlib/wheelhouse/*.whl
5 changes: 4 additions & 1 deletion pyscfadlib/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
build-verbosity = 1
container-engine = "docker"
manylinux-x86_64-image = "manylinux2014"
skip = ["pp*", "*musllinux*"]
skip = ["pp*", "*musllinux*", "*universal2", "*arm64"]

[tool.cibuildwheel.linux]
archs = ["x86_64"]
Expand All @@ -12,3 +12,6 @@ before-all = [
"yum install -y openblas-devel.x86_64",
]
repair-wheel-command = "auditwheel -v repair -w {dest_dir} {wheel}"

[tool.cibuildwheel.macos]
archs = ["x86_64"]

0 comments on commit 345837c

Please sign in to comment.