-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- BuildAndPublish triggers on tag "v*.*.*" and main branch - BuildAndTest triggers on dev branch and +ci commit message
- Loading branch information
Showing
3 changed files
with
111 additions
and
145 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 was deleted.
Oops, something went wrong.
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,68 @@ | ||
name: BuildAndTest | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
push: | ||
branches: | ||
- dev | ||
|
||
defaults: | ||
run: | ||
working-directory: python | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
platform: [windows-latest, macos-latest, macos-13, ubuntu-latest] | ||
|
||
runs-on: ${{ matrix.platform }} | ||
if: "contains(github.event.head_commit.message, '+ci')" | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: false | ||
|
||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.12" | ||
|
||
- name: Add requirements | ||
run: python -m pip install --upgrade setuptools pybind11>=2.12.0 cibuildwheel | ||
|
||
- name: Copy Build Files | ||
run: python setup.py copy_build_files | ||
|
||
- name: Build Packages | ||
run: cibuildwheel --output-dir "dist" | ||
env: | ||
CIBW_ARCHS: auto64 | ||
CIBW_BUILD_FRONTEND: "pip; args: --verbose" | ||
CIBW_ENVIRONMENT: "FORCE_AVX2=1" | ||
CIBW_ENVIRONMENT_MACOS: "FORCE_AVX2=1 MACOSX_DEPLOYMENT_TARGET=10.15" | ||
CIBW_SKIP: "cp313-*" | ||
|
||
build_sdist: | ||
runs-on: ubuntu-latest | ||
if: "contains(github.event.head_commit.message, '+ci')" | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: false | ||
|
||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.12" | ||
|
||
- name: Add requirements | ||
run: python -m pip install --upgrade setuptools pybind11>=2.12.0 | ||
|
||
- name: Copy Build Files | ||
run: python setup.py copy_build_files | ||
|
||
- name: Build Source Distribution | ||
run: python setup.py sdist |