add Faust2touchdesigner #154
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
name: Compile | |
on: | |
pull_request: {} | |
# push: | |
# branches: | |
# - main | |
push: | |
tags: | |
- '*' | |
jobs: | |
build-windows: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
include: | |
- { name: "win64", os: "windows-2022", python-version: "3.9", python-major: "39"} | |
- { name: "win64", os: "windows-2022", python-version: "3.11", python-major: "311"} | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Add msbuild to PATH | |
uses: microsoft/[email protected] | |
- name: Get CMake | |
uses: lukka/get-cmake@latest | |
- name: Download Libfaust | |
shell: cmd | |
run: | | |
cd thirdparty/libfaust | |
call download_libfaust.bat | |
- name: Build TD-Faust | |
shell: cmd | |
run: | | |
call build_windows.bat | |
env: | |
PYTHONVER: ${{ matrix.python-version}} | |
- name: Build Reverb operator | |
shell: cmd | |
run: | | |
set PATH=%CD%/thirdparty/libfaust/win64/Release/bin;%PATH% | |
python faust2td.py --dsp reverb.dsp --type "Reverb" --label "Reverb" --icon "Rev" --author "David Braun" --email "github.com/DBraun" --drop-prefix | |
- name: Make distribution | |
run: | | |
Remove-Item -Recurse -Force "${{ github.workspace }}/Plugins/faustlibraries/.git" | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: TD-Faust-${{ matrix.name }}-Python${{ matrix.python-major }} | |
path: Plugins | |
# build-macos: | |
# strategy: | |
# matrix: | |
# include: | |
# - name: macos-x86_64 | |
# os: macos-latest | |
# runs-on: macos-latest | |
# steps: | |
# - uses: actions/checkout@v3 | |
# with: | |
# submodules: true | |
# - name: Setup Python 3.8 | |
# uses: actions/setup-python@v5 | |
# with: | |
# python-version: '3.8' | |
# - name: Setup Python 3.9 | |
# run: | | |
# pip install --upgrade certifi | |
# cd install_script | |
# python macos_install_python.py | |
# - name: Build Everything | |
# run: | | |
# export PATH=/Library/Frameworks/Python.framework/Versions/3.9:/Library/Frameworks/Python.framework/Versions/3.9/bin:/Library/Frameworks/Python.framework/Versions/3.9/lib:$PATH | |
# which python3 | |
# python3 --version | |
# sh -v build_macos.sh | |
# - name: Build Reverb operator | |
# shell: cmd | |
# run: | | |
# export PATH=$PWD/thirdparty/libfaust/darwin-x64/Release/:$PWD/thirdparty/libfaust/darwin-arm64/Release/:$PATH | |
# python faust2td.py --dsp reverb.dsp --type "Reverb" --label "Reverb" --icon "Rev" --author "David Braun" --email "github.com/DBraun" --drop-prefix | |
# - name: Make distribution | |
# run: | | |
# rm -rf Plugins/faustlibraries/.git | |
# - name: Upload artifact | |
# uses: actions/upload-artifact@v4 | |
# with: | |
# name: TD-Faust-${{ matrix.name }}-Python${{ matrix.python-major }} | |
# path: Plugins | |
create-release: | |
if: startsWith(github.ref, 'refs/tags/v') | |
# needs: [build-windows, build-macos] | |
needs: [build-windows] | |
runs-on: ubuntu-latest | |
name: "Create Release on GitHub" | |
steps: | |
- uses: actions/download-artifact@v3 | |
with: | |
path: "dist" | |
- uses: ncipollo/release-action@v1 | |
with: | |
artifacts: "dist/*/*" | |
token: ${{ secrets.GITHUB_TOKEN }} | |
draft: true |