Skip to content

Commit

Permalink
[CI] build wheels macOS and Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
tttapa committed Dec 2, 2024
1 parent 627f2d8 commit 93255a0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/wheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -209,13 +209,13 @@ jobs:
# will use its default cross-compilation settings for Windows on ARM64.
# For macOS, we build universal wheels that work on both Intel and ARM macs.
build-macos-windows:
if: false
name: Build wheels for ${{ matrix.os }}
needs: [build-sdist]
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, windows-latest]
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
3 changes: 3 additions & 0 deletions scripts/ci/pre-build-macos.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@
print(profile)

opts = dict(shell=True, check=True)
if not Path("recipes").exists():
run(f"git clone https://github.com/tttapa/conan-recipes recipes", **opts)
run(f"conan remote add tttapa-conan-recipes recipes --force", **opts)
for c in ("Debug", "Release"):
run(
"conan install . -pr:h ./cibw.profile --build=missing -s build_type=" + c,
Expand Down
3 changes: 3 additions & 0 deletions scripts/ci/pre-build-windows.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@
print(profile)

opts = dict(shell=True, check=True)
if not Path("recipes").exists():
run(f"git clone https://github.com/tttapa/conan-recipes recipes", **opts)
run(f"conan remote add tttapa-conan-recipes recipes --force", **opts)
for c in ("RelWithDebInfo", "Release"):
run(
"conan install . -pr:h ./cibw.profile --build=missing -s build_type=Release",
Expand Down

0 comments on commit 93255a0

Please sign in to comment.