-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9caa658
commit 75f0fe0
Showing
4 changed files
with
49 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Build Test | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
name: Build wheels on ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, windows-latest, macOS-latest] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: actions/setup-python@v3 | ||
name: Install Python | ||
|
||
- name: Install cibuildwheel | ||
run: python -m pip install cibuildwheel==2.15.0 | ||
|
||
- name: Get submodules | ||
run: git submodule update --init --recursive | ||
|
||
- name: Build wheels for Windows | ||
if: startsWith(matrix.os, 'windows') | ||
run: | | ||
python -m cibuildwheel --output-dir wheels | ||
env: | ||
CIBW_SKIP: "cp27-* pp27-*" # skip Python 2.7 wheels | ||
|
||
- name: Build wheels for mac and manylinux | ||
if: "!startsWith(matrix.os, 'windows')" | ||
run: | | ||
python -m cibuildwheel --output-dir wheels | ||
env: | ||
CIBW_ARCHS_MACOS: "auto x86_64 universal2 arm64" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters