Skip to content

Commit

Permalink
Prepared release 0.9.0 ready to be merged and tested
Browse files Browse the repository at this point in the history
  • Loading branch information
kunitoki committed Feb 9, 2024
1 parent 67bbe41 commit d91306d
Show file tree
Hide file tree
Showing 256 changed files with 78,286 additions and 1,347 deletions.
93 changes: 60 additions & 33 deletions .github/workflows/build_linux.yml
Original file line number Diff line number Diff line change
@@ -1,42 +1,69 @@
name: Linux Builds

on: push
on:
push:
paths:
- "**/workflows/build_linux.yml"
- "**/cmake/**"
- "**/JUCE/**"
- "**/modules/**"
- "**/tests/**"
- ".gitmodules"
- "CMakeLists.txt"
- "MANIFEST.in"
- "pyproject.toml"
- "setup.py"

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
linux_build:
runs-on: ubuntu-20.04
build-linux:
name: Build cp${{matrix.python}}-${{ matrix.platform_id }}
runs-on: ${{ matrix.os }}
continue-on-error: false

strategy:
fail-fast: true
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10']
include:
- { os: ubuntu-latest, python: 310, platform_id: manylinux_x86_64, cibw_archs: x86_64 }
- { os: ubuntu-latest, python: 310, platform_id: manylinux_aarch64, cibw_archs: aarch64 }

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

- name: Set up Linux Dependencies
run: |
sudo apt-get update
sudo apt-get -y install zlib1g-dev libpng-dev libcurl3-dev
sudo apt-get -y install libasound2-dev libfreetype6-dev libxcomposite-dev libxcursor-dev
sudo apt-get -y install libxinerama-dev libxrandr-dev libxrender-dev libx11-dev
sudo apt-get -y install x11proto-randr-dev x11proto-render-dev x11proto-xinerama-dev
sudo apt-get -y install freeglut3-dev mesa-common-dev
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Install Python Dependencies
shell: bash
run: |
python3 -m pip install --upgrade pip
pip3 install setuptools wheel
- name: Build Python Wheel
shell: bash
run: |
python3 setup.py clean --all
python3 setup.py bdist_wheel
- name: Checkout the repository
uses: actions/checkout@v4
with:
submodules: recursive

- name: Set up QEMU
if: matrix.cibw_archs == 'aarch64'
uses: docker/setup-qemu-action@v3
with:
platforms: arm64

- name: Setup and install python
uses: actions/setup-python@v5
with:
python-version: "3.11"

- name: Build wheels
uses: pypa/[email protected]
env:
CIBW_ARCHS: ${{matrix.cibw_archs}}
CIBW_BUILD: cp${{ matrix.python }}-${{ matrix.platform_id }}
CIBW_TEST_SKIP: "*-manylinux_aarch64"

- name: Store failures artifacts
if: failure()
uses: actions/upload-artifact@v4
with:
name: compare-data
path: |
./wheelhouse/compare_data/
!./wheelhouse/compare_data/.gitignore
if-no-files-found: ignore
retention-days: 5
compression-level: 0
overwrite: true
77 changes: 53 additions & 24 deletions .github/workflows/build_macos.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,62 @@
name: macOS Builds

on: push
on:
push:
paths:
- "**/workflows/build_macos.yml"
- "**/cmake/**"
- "**/JUCE/**"
- "**/modules/**"
- "**/tests/**"
- ".gitmodules"
- "CMakeLists.txt"
- "MANIFEST.in"
- "pyproject.toml"
- "setup.py"

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
macos_build:
runs-on: macos-latest
build-macos:
name: Build cp${{matrix.python}}-${{ matrix.platform_id }}
runs-on: ${{ matrix.os }}
continue-on-error: false

strategy:
fail-fast: true
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10']
include:
- { os: macos-latest, python: 310, platform_id: macosx_universal2, cibw_archs: universal2 }

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

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Install Python Dependencies
shell: bash
run: |
python3 -m pip install --upgrade pip
pip3 install setuptools wheel
- name: Build Python Wheel
shell: bash
run: |
python3 setup.py clean --all
python3 setup.py bdist_wheel
- name: Checkout the repository
uses: actions/checkout@v4
with:
submodules: recursive

- name: Setup and install python
uses: actions/setup-python@v5
with:
python-version: "3.11"

- name: Build wheels
uses: pypa/[email protected]
env:
CIBW_ARCHS: ${{matrix.cibw_archs}}
CIBW_BUILD: cp${{ matrix.python }}-${{ matrix.platform_id }}
CIBW_TEST_SKIP: "*-macosx_universal2:arm64"

- name: Store failures artifacts
if: failure()
uses: actions/upload-artifact@v4
with:
name: compare-data
path: |
tests/compare_data/
!tests/compare_data/.gitignore
if-no-files-found: ignore
retention-days: 5
compression-level: 0
overwrite: true
78 changes: 54 additions & 24 deletions .github/workflows/build_windows.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,63 @@
name: Windows Builds

on: push
on:
push:
paths:
- "**/workflows/build_windows.yml"
- "**/cmake/**"
- "**/JUCE/**"
- "**/modules/**"
- "**/tests/**"
- ".gitmodules"
- "CMakeLists.txt"
- "MANIFEST.in"
- "pyproject.toml"
- "setup.py"

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
windows_build:
runs-on: windows-latest
build-windows:
name: Build cp${{matrix.python}}-${{ matrix.platform_id }}
runs-on: ${{ matrix.os }}
continue-on-error: false

strategy:
fail-fast: true
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10']
include:
- { os: windows-latest, python: 310, platform_id: win_amd64, cibw_archs: AMD64 }
- { os: windows-latest, python: 310, platform_id: win_arm64, cibw_archs: ARM64 }

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

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Install Python Dependencies
shell: bash
run: |
python -m pip install --upgrade pip
pip install setuptools wheel
- name: Build Python Wheel
shell: bash
run: |
python setup.py clean --all
python setup.py bdist_wheel
- name: Checkout the repository
uses: actions/checkout@v4
with:
submodules: recursive

- name: Setup and install python
uses: actions/setup-python@v5
with:
python-version: "3.11"

- name: Build wheels
uses: pypa/[email protected]
env:
CIBW_ARCHS: ${{matrix.cibw_archs}}
CIBW_BUILD: cp${{ matrix.python }}-${{ matrix.platform_id }}
CIBW_TEST_SKIP: "*-win_arm64"

- name: Store failures artifacts
if: failure()
uses: actions/upload-artifact@v4
with:
name: compare-data
path: |
tests/compare_data/
!tests/compare_data/.gitignore
if-no-files-found: ignore
retention-days: 5
compression-level: 0
overwrite: true
50 changes: 50 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Code Coverage

on:
push:
paths:
- "**/workflows/coverage.yml"
- "**/cmake/**"
- "**/JUCE/**"
- "**/modules/**"
- "**/tests/**"
- ".gitmodules"
- "CMakeLists.txt"
- "MANIFEST.in"
- "pyproject.toml"
- "setup.py"

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
code-coverage:
name: Code Coverage
runs-on: ubuntu-latest

steps:
- name: Checkout the repository
uses: actions/checkout@v4
with:
submodules: recursive

- name: Setup and install python
uses: actions/setup-python@v5
with:
python-version: "3.11"

- name: Build wheels and test
uses: pypa/[email protected]
env:
CIBW_ARCHS: x86_64
CIBW_BUILD: cp311-manylinux_x86_64
CIBW_TEST_SKIP: "*manylinux*"
CIBW_ENVIRONMENT: POPSICLE_COVERAGE=1

- name: Coveralls
uses: coverallsapp/github-action@master
with:
path-to-lcov: ./wheelhouse/lcov.info
github-token: ${{ secrets.GITHUB_TOKEN }}
debug: true
Loading

0 comments on commit d91306d

Please sign in to comment.