-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #143 from SpotlightKid/develop
Merge 1.5.0 release to master
- Loading branch information
Showing
6 changed files
with
198 additions
and
18 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,12 @@ | ||
name: Build sdist and wheel and publish to PyPI and TestPyPI | ||
name: Build sdist and wheel and publish to TestPyPI | ||
|
||
#on: [push, pull_request] | ||
on: | ||
push: | ||
branches: | ||
- master | ||
- develop | ||
pull_request: | ||
branches: | ||
- master | ||
- develop | ||
|
||
jobs: | ||
build_sdist: | ||
|
@@ -36,6 +35,7 @@ jobs: | |
name: Build wheels on ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
os: [ubuntu-latest, windows-latest, macos-latest] | ||
steps: | ||
|
@@ -45,7 +45,7 @@ jobs: | |
submodules: true | ||
|
||
- name: Build wheels | ||
uses: pypa/cibuildwheel@v2.11.4 | ||
uses: pypa/cibuildwheel@v2.12.3 | ||
|
||
- uses: actions/upload-artifact@v3 | ||
with: | ||
|
@@ -67,7 +67,7 @@ jobs: | |
with: | ||
platforms: all | ||
|
||
- uses: pypa/cibuildwheel@v2.11.3 | ||
- uses: pypa/cibuildwheel@v2.12.3 | ||
env: | ||
CIBW_ARCHS: ${{ matrix.arch }} | ||
|
||
|
@@ -84,9 +84,8 @@ jobs: | |
needs: [build_arch_wheels, build_wheels, build_sdist] | ||
runs-on: ubuntu-latest | ||
environment: PyPI release | ||
if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/v') | ||
if: github.ref == 'refs/heads/develop' | ||
steps: | ||
|
||
- uses: actions/download-artifact@v3 | ||
with: | ||
# unpacks default artifact into dist/ | ||
|
@@ -95,16 +94,11 @@ jobs: | |
path: dist | ||
|
||
- name: Publish distribution to Test PyPI | ||
uses: pypa/gh-action-pypi-publish@v1.6.4 | ||
uses: pypa/gh-action-pypi-publish@v1.8.6 | ||
with: | ||
skip_existing: true | ||
user: __token__ | ||
password: ${{ secrets.TEST_PYPI_API_TOKEN }} | ||
repository_url: https://test.pypi.org/legacy/ | ||
verify-metadata: false | ||
|
||
- name: Publish distribution to PyPI | ||
if: startsWith(github.ref, 'refs/tags/v') | ||
uses: pypa/[email protected] | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.PYPI_API_TOKEN }} |
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,100 @@ | ||
name: Build sdist and wheel and publish to PyPI | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build_sdist: | ||
name: Build sdist | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
|
||
- name: Install ninja | ||
run: pipx install ninja | ||
|
||
- name: Build sdist | ||
run: pipx run build --sdist | ||
|
||
- name: Check metadata | ||
run: pipx run twine check --strict dist/* | ||
|
||
- uses: actions/upload-artifact@v3 | ||
with: | ||
path: dist/*.tar.gz | ||
|
||
build_wheels: | ||
name: Build wheels on ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, windows-latest, macos-latest] | ||
steps: | ||
|
||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
|
||
- name: Build wheels | ||
uses: pypa/[email protected] | ||
|
||
- uses: actions/upload-artifact@v3 | ||
with: | ||
path: wheelhouse/*.whl | ||
|
||
build_arch_wheels: | ||
name: Build wheels on Linux ${{ matrix.arch }} | ||
runs-on: ubuntu-20.04 | ||
strategy: | ||
matrix: | ||
arch: [aarch64] | ||
steps: | ||
|
||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
|
||
- uses: docker/setup-qemu-action@v2 | ||
with: | ||
platforms: all | ||
|
||
- uses: pypa/[email protected] | ||
env: | ||
CIBW_ARCHS: ${{ matrix.arch }} | ||
|
||
- name: Verify clean directory | ||
run: git diff --exit-code | ||
shell: bash | ||
|
||
- name: Upload wheels | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
path: wheelhouse/*.whl | ||
|
||
upload_pypi: | ||
needs: [build_arch_wheels, build_wheels, build_sdist] | ||
runs-on: ubuntu-latest | ||
environment: PyPI release | ||
if: github.event_name == 'release' && github.event.action == 'published' | ||
steps: | ||
- uses: actions/download-artifact@v3 | ||
with: | ||
# unpacks default artifact into dist/ | ||
# if `name: artifact` is omitted, the action will create extra parent dir | ||
name: artifact | ||
path: dist | ||
|
||
- name: Publish distribution to PyPI | ||
uses: pypa/[email protected] | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.PYPI_API_TOKEN }} | ||
verify-metadata: false |
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,81 @@ | ||
name: Build sdist and wheel for testing purposes | ||
|
||
on: | ||
push: | ||
branches: | ||
- rtmidi-5.0.0 | ||
pull_request: | ||
branches: | ||
- rtmidi-5.0.0 | ||
|
||
jobs: | ||
build_sdist: | ||
name: Build sdist | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
|
||
- name: Install ninja | ||
run: pipx install ninja | ||
|
||
- name: Build sdist | ||
run: pipx run build --sdist | ||
|
||
- name: Check metadata | ||
run: pipx run twine check --strict dist/* | ||
|
||
- uses: actions/upload-artifact@v3 | ||
with: | ||
path: dist/*.tar.gz | ||
|
||
build_wheels: | ||
name: Build wheels on ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
os: [ubuntu-latest, windows-latest, macos-latest] | ||
steps: | ||
|
||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
|
||
- name: Build wheels | ||
uses: pypa/[email protected] | ||
|
||
- uses: actions/upload-artifact@v3 | ||
with: | ||
path: wheelhouse/*.whl | ||
|
||
build_arch_wheels: | ||
name: Build wheels on Linux ${{ matrix.arch }} | ||
runs-on: ubuntu-20.04 | ||
strategy: | ||
matrix: | ||
arch: [aarch64] | ||
steps: | ||
|
||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
|
||
- uses: docker/setup-qemu-action@v2 | ||
with: | ||
platforms: all | ||
|
||
- uses: pypa/[email protected] | ||
env: | ||
CIBW_ARCHS: ${{ matrix.arch }} | ||
|
||
- name: Verify clean directory | ||
run: git diff --exit-code | ||
shell: bash | ||
|
||
- name: Upload wheels | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
path: wheelhouse/*.whl |
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
Submodule rtmidi
updated
19 files
+71 −0 | .github/workflows/ci.yml | |
+0 −48 | .travis.yml | |
+57 −29 | CMakeLists.txt | |
+1 −1 | LICENSE | |
+2 −8 | README.md | |
+474 −54 | RtMidi.cpp | |
+32 −14 | RtMidi.h | |
+20 −0 | cmake/RtMidi-config.cmake.in | |
+18 −2 | configure.ac | |
+1 −1 | doc/doxygen/footer.html | |
+11 −9 | doc/doxygen/tutorial.txt | |
+13 −1 | doc/release.txt | |
+951 −0 | m4/ax_cxx_compile_stdcxx.m4 | |
+2 −2 | rtmidi.pc.in | |
+15 −5 | rtmidi_c.cpp | |
+6 −2 | rtmidi_c.h | |
+6 −1 | tests/Makefile.am | |
+20 −20 | tests/sysextest.cpp | |
+26 −0 | tests/testcapi.c |