Skip to content

Commit

Permalink
Merge pull request #11 from MikeMoore63/upgradecibuildwheel
Browse files Browse the repository at this point in the history
feat: upgrade cibuildwheel add osx arm64 shared library support to avoid build on those platforms
  • Loading branch information
MikeMoore63 authored Jul 13, 2024
2 parents 7a3c153 + d3a51bf commit f9d0a2f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-22.04, macos-12]
os: [ubuntu-22.04, macos-12, macos-14]

steps:
- uses: actions/checkout@v4
Expand All @@ -28,7 +28,7 @@ jobs:
platforms: all

- name: Build wheels
uses: pypa/cibuildwheel@v2.16.2
uses: pypa/cibuildwheel@v2.19.2
env:
# configure cibuildwheel to build native archs ('auto'), and some
# emulated ones
Expand Down
7 changes: 6 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
[tool.cibuildwheel]


[tool.cibuildwheel.windows]
archs=["AMD64"]
before-all = "powershell {project}\\installGo.ps1"
Expand Down Expand Up @@ -33,6 +32,12 @@ then
fi
'''

[tool.cibuildwheel.macos]
before-all = '''
brew install go@1.21
'''
environment = "PATH=/opt/homebrew/opt/go@1.21/bin:$PATH"

[[tool.cibuildwheel.overrides]]
select = "*-musllinux*"
before-all = "wget https://golang.org/dl/go1.21.1.linux-amd64.tar.gz;tar -C /usr/local -xzf go1.21.1.linux-amd64.tar.gz"
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = pygobuildinfo
version = 0.1.15
version = 0.1.16
author = Mike Moore
author_email = z_z_zebra@yahoo.com
license = MIT
Expand Down

0 comments on commit f9d0a2f

Please sign in to comment.