Skip to content

Commit

Permalink
trying a new wheel
Browse files Browse the repository at this point in the history
Signed-off-by: Nick Papior <[email protected]>
  • Loading branch information
zerothi committed Sep 18, 2023
1 parent 2d65fc3 commit 905fa34
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/wheels.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,12 @@ jobs:
# If one of the jobs fails, continue with the others.
fail-fast: false
matrix:
os: [macos-latest]
platform_id: [macosx_x86_64, macosx_universal2, macosx_arm64]
python: [38, 39, 310, 311]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: false

# Setup the fortran compiler. This is aware of the operating system.
Expand All @@ -91,9 +90,7 @@ jobs:

# We use the cibuildwheel action to take care of everything
- name: Build wheels
uses: pypa/[email protected]
env:
CIBW_BUILD: cp${{ matrix.python }}-${{ matrix.platform_id }}
uses: pypa/[email protected]
CIBW_TEST_SKIP: "*-macosx_arm64 *-macosx_universal2:arm64"
# The rest of options are specified at pyproject.toml

Expand All @@ -108,8 +105,9 @@ jobs:
name: Build source distribution
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: false

- name: Build sdist
Expand Down
6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -301,11 +301,17 @@ test-extras = "test"
# the sisl-files directory, which contains files for testing.
test-command = "bash {project}/tools/build_tools/test_wheel.sh {project}"

[tool.cibuildwheel.linux]
archs = ["x86"]

[tool.cibuildwheel.windows]
archs = ["amd64", "x86"]
before-build = "pip install delvewheel"
repair-wheel-command = "delvewheel repair --no-mangle-all --ignore-in-wheel -w {dest_dir} {wheel}"

[tool.cibuildwheel.macos]
archs = ["x86_64", "universal2", "arm64"]
test-skip = "*-macosx_arm64 *-macosx_universal2:arm64"

environment = {CFLAGS="-fno-strict-aliasing", CC="clang", CXX = "clang++", RUNNER_OS="macOS"}

0 comments on commit 905fa34

Please sign in to comment.