imp.mc~ #333
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: C/C++ CI | |
on: | |
push: | |
branches: [ "master", "CI"] | |
paths-ignore: ['md-help/**'] | |
pull_request: | |
branches: [ "master", "CI" ] | |
paths-ignore: ['md-help/**', 'Help-files/**'] | |
jobs: | |
# =============================================================== | |
# =============================================================== | |
# =============================================================== | |
Linux-Build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install PureData | |
run: sudo apt-get install puredata -y | |
- name: Downloads pd-Sources | |
run: | | |
PD_URL=$(curl -L -s https://api.github.com/repos/pure-data/pure-data/tags | grep zipball_url | grep -v latest | grep -v pd-0.54 | grep -v tagtest | head -n 1 | cut -d '"' -f 4) | |
curl -L -o pure-data.zip $PD_URL | |
unzip pure-data.zip | |
rm pure-data.zip | |
mv pure-data-* pure-data | |
- name: Install FluidSynth deps | |
run: sudo apt install cmake libglib2.0-dev libpcre++-dev libsndfile1-dev patchelf -y | |
- name: build FluidSynth | |
run: | | |
mkdir ./else-Linux | |
cd Code_source/Compiled/signal/sfont~ | |
URL=$(curl -L -s https://api.github.com/repos/FluidSynth/fluidsynth/releases/latest | grep zipball_url | cut -d '"' -f 4) | |
curl -L -o fluidsynth.zip $URL | |
unzip fluidsynth.zip | |
rm fluidsynth.zip | |
mv FluidSynth-* FluidSynth | |
cd FluidSynth | |
mkdir build | |
cd build | |
cmake -Denable-libsndfile=on -Denable-jack=off -Denable-alsa=off -Denable-oss=off -Denable-pulseaudio=off -Denable-ladspa=off -Denable-aufile=off -Denable-network=off -Denable-ipv6=off -Denable-getopt=off -Denable-sdl2=off -Denable-threads=off .. | |
sudo ldconfig /lib/x86_64-linux-gnu/ | |
sudo ldconfig -v | |
sudo make install | |
- name: Add Dynamic libraries | |
run: | | |
sudo sh -c 'echo "/lib/x86_64-linux-gnu/" >> /etc/ld.so.conf' | |
sudo sh -c 'echo "/lib64/" >> /etc/ld.so.conf' | |
sudo sh -c 'echo "/usr/local/lib/" >> /etc/ld.so.conf' | |
sudo ldconfig | |
sudo ldconfig -v | |
# - name: Build sfont~ | |
# run: | | |
# cd ./Code_source/Compiled/signal/sfont~ | |
# make PDLIBDIR=${{github.workspace}}/else-Linux/ extension=l_amd64 localdep_linux | |
- name: Build pd-sfz~ | |
run: | | |
cd ./Code_source/Compiled/signal/sfz~ | |
make PDINCLUDEDIR=./pure-data/src/ | |
cd ./sfizz/build/pd/sfizz/ | |
ls | |
- name: Build plaits~ | |
run: | | |
cd ./Code_source/Compiled/signal/plaits~ | |
make PDINCLUDEDIR=${{github.workspace}}/pure-data/src extension=l_amd64 | |
- name: Build pd-else | |
run: | | |
make PDINCLUDEDIR=./pure-data/src/ extension=l_amd64 | |
- name: Create Library Folder | |
run: | | |
cp *.l_amd64 ./else-Linux | |
cp ./Documentation/Help-files/* ./else-Linux | |
cp -r ./Code_source/Abstractions/abs_objects/control/* ./else-Linux | |
cp -r ./Code_source/Abstractions/abs_objects/signal/* ./else-Linux | |
cp -r ./Code_source/Abstractions/extra_abs/* ./else-Linux | |
cp -r ./Code_source/Abstractions/libpd/* ./else-Linux | |
cp -r ./Documentation/Live-Electronics-Tutorial ./else-Linux | |
cp -r ./Code_source/Compiled/signal/plaits~/*.l_amd64 ./else-Linux | |
cp -r ./Code_source/extra_source/*.tcl ./else-Linux | |
cp -r ./Code_source/Compiled/signal/sfz~/sfizz/build/pd/sfizz/sfizz.pd_linux ./else-Linux | |
mv ./else-Linux/sfizz.pd_linux ./else-Linux/sfz~.l_amd64 | |
cp -r ./Documentation/extra_files/* ./else-Linux | |
cp README.pdf ./else-Linux | |
rm -rf ./else-Linux/sfont~ | |
- name: Upload Zip | |
uses: actions/upload-artifact@v3 | |
with: | |
name: else | |
path: ./else-Linux/* | |
# # # # =============================================================== | |
# # # # =============================================================== | |
# # # # =============================================================== | |
# Windows-Build: | |
# runs-on: windows-latest | |
# timeout-minutes: 15 | |
# steps: | |
# - uses: actions/checkout@v3 | |
# with: | |
# submodules: recursive | |
# fetch-depth: 0 | |
# - uses: actions/setup-python@v4 | |
# with: | |
# python-version: '3.10' | |
# - if: runner.os == 'Windows' | |
# name: "Install mingw deps" | |
# uses: msys2/setup-msys2@v2 | |
# with: | |
# install: make autoconf automake libtool mingw-w64-x86_64-gcc mingw64/mingw-w64-x86_64-ntldd-git libtool mingw-w64-x86_64-libwinpthread-git mingw-w64-x86_64-libsystre mingw-w64-x86_64-dlfcn mingw-w64-x86_64-fluidsynth mingw-w64-x86_64-grep unzip | |
# update: false | |
# - name: Configure Environment | |
# run: | | |
# mkdir py4pd_WIN64 | |
# choco install puredata --yes | |
# - if: runner.os == 'Windows' | |
# name: Build sfont~ | |
# shell: msys2 {0} | |
# run: | | |
# mkdir ./else-Windows | |
# cd sfont~ | |
# make extension=m_amd64 | |
# ./scripts/localdeps.win.sh sfont~.m_amd64 | |
# cd .. | |
# - if: runner.os == 'Windows' | |
# name: Build plaits~ | |
# shell: msys2 {0} | |
# run: | | |
# cd plaits~ | |
# make extension=m_amd64 | |
# - if: runner.os == 'Windows' | |
# name: Build pd-else | |
# shell: msys2 {0} | |
# run: | | |
# make extension=m_amd64 | |
# - if: runner.os == 'Windows' | |
# name: Create Library Folder | |
# shell: msys2 {0} | |
# run: | | |
# cp *.m_amd64 ./else-Windows | |
# cp Help-files/* ./else-Windows | |
# cp Classes/libpd-abs/* ./else-Windows | |
# cp Classes/Abstractions/* ./else-Windows | |
# cp Classes/Abs_components/* ./else-Windows | |
# mkdir ./else-Windows/sf | |
# cp sfont~/sf/* ./else-Windows/sf | |
# cp -r Live-Electronics-Tutorial ./else-Windows | |
# cp plaits~/*.m_amd64 ./else-Windows | |
# cp sfont~/*.m_amd64 ./else-Windows | |
# cp sfont~/sfont-compiled/*.w64 ./else-Windows | |
# cp extra/* ./else-Windows | |
# cp README.pdf ./else-Windows | |
# - name: Upload Zip | |
# uses: actions/upload-artifact@v3 | |
# with: | |
# name: else | |
# path: ./else-Windows/* | |
# # =============================================================== | |
# # =============================================================== | |
# # =============================================================== | |
Mac-Intel: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
fetch-depth: 0 | |
- name: set Enviroment | |
run: | | |
brew cleanup --prune=all | |
brew install --cask pd | |
brew install fluidsynth pkg-config | |
# - name: Build sfont~ | |
# run: | | |
# cd sfont~ | |
# make extension=d_amd64 | |
# ./scripts/localdeps.macos.sh sfont~.d_amd64 | |
- name: Build pd-sfz~ | |
run: | | |
cd ./Code_source/Compiled/signal/sfz~ | |
make extension=d_amd64 | |
- name: Build plaits~ | |
run: | | |
cd ./Code_source/Compiled/signal/plaits~ | |
make extension=d_amd64 | |
- name: Build pd-else | |
run: | | |
make extension=d_amd64 | |
- name: Create Library Folder | |
run: | | |
mkdir else-MacOS | |
cp *.d_amd64 ./else-MacOS | |
cp ./Code_source/Compiled/signal/plaits~/*.d_amd64 ./else-MacOS | |
cp -r ./Code_source/Compiled/signal/sfz~/sfizz/build/pd/sfizz/*.pd_darwin ./else-MacOS | |
mv ./else-MacOS/sfizz.pd_darwin ./else-MacOS/sfz~.d_amd64 | |
cp -r ./Code_source/Compiled/signal/sfont~/sfont-compiled/* ./else-MacOS | |
cp -r ./Code_source/Compiled/signal/sfont~/sf ./else-MacOS | |
- name: Upload Zip | |
uses: actions/upload-artifact@v3 | |
with: | |
name: else | |
path: ./else-MacOS/* | |
# =============================================================== | |
# =============================================================== | |
# =============================================================== | |
Mac-ARM: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
fetch-depth: 0 | |
- name: set Enviroment | |
run: | | |
brew cleanup --prune=all | |
brew install --cask pd | |
brew install fluidsynth pkg-config | |
# - name: Build sfont~ | |
# run: | | |
# cd sfont~ | |
# make extension=d_arm64 | |
# ./scripts/localdeps.macos.sh sfont~.d_arm64 | |
- name: Build pd-sfz~ | |
run: | | |
cd ./Code_source/Compiled/signal/sfz~ | |
make extension=d_arm64 | |
- name: Build plaits~ | |
run: | | |
cd ./Code_source/Compiled/signal/plaits~ | |
make extension=d_arm64 | |
- name: Build pd-else | |
run: | | |
make extension=d_arm64 | |
- name: Create Library Folder | |
run: | | |
mkdir else-MacOS | |
cp *.d_arm64 ./else-MacOS | |
cp ./Code_source/Compiled/signal/plaits~/*.d_arm64 ./else-MacOS | |
cp -r ./Code_source/Compiled/signal/sfz~/sfizz/build/pd/sfizz/*.pd_darwin ./else-MacOS | |
mv ./else-MacOS/sfizz.pd_darwin ./else-MacOS/sfz~.d_arm64 | |
cp -r ./Code_source/Compiled/signal/sfont~/sfont-compiled/* ./else-MacOS | |
- name: Upload Zip | |
uses: actions/upload-artifact@v3 | |
with: | |
name: else | |
path: ./else-MacOS/* |