Skip to content

Commit

Permalink
Disable build of examples in python wheels and add macos-14 runners f…
Browse files Browse the repository at this point in the history
…or arm based setups
  • Loading branch information
EmilDohne committed Mar 8, 2024
1 parent f5a3b64 commit cf381af
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/build-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,21 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [windows-latest, macos-latest, ubuntu-latest]
os: [windows-latest, macos-latest, macos-14, ubuntu-latest]

steps:
- uses: actions/checkout@v4
with:
submodules: true

# We need to specify Xcode15.1 here as the default for macos-14 runners is 15.01 which has a bug
# causing linking to fail.
- name: Setup Xcode 15.1
if: matrix.os == 'macos-14'
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '15.1'

- uses: pypa/cibuildwheel@v2.16
env:
CC: gcc-13
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def build_extension(self, ext: CMakeExtension) -> None:
build_temp.mkdir(parents=True)

subprocess.run(
["cmake", ext.sourcedir, *cmake_args, "-DPSAPI_BUILD_DOCS=OFF", "-DPSAPI_BUILD_BENCHMARKS=OFF", "-DPSAPI_BUILD_TESTS=OFF"], cwd=build_temp, check=True
["cmake", ext.sourcedir, *cmake_args, "-DPSAPI_BUILD_DOCS=OFF", "-DPSAPI_BUILD_BENCHMARKS=OFF", "-DPSAPI_BUILD_EXAMPLES=OFF", "-DPSAPI_BUILD_TESTS=OFF"], cwd=build_temp, check=True
)
subprocess.run(
["cmake", "--build", ".", *build_args], cwd=build_temp, check=True
Expand Down

0 comments on commit cf381af

Please # to comment.