check binaries #96
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
on: [push, workflow_dispatch] | |
jobs: | |
testlinux: | |
name: Test risset on linux | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.9"] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: install csound | |
run: | | |
sudo apt install csound libcsnd-dev | |
csound --version | |
mkdir -p artifacts | |
- name: linux - test install from git | |
run: | | |
set -x | |
pip install . | |
echo "Risset version: $(risset --version)" | |
risset update | |
risset list | |
echo "Installing some plugins (klib, else)" | |
risset install klib else | |
echo "-------------------------------" | |
echo "Checking that the plugins are installed and recognized by csound" | |
csound -z1 2>&1 | grep dict_ | |
echo "Checking that the plugins are functional" | |
csound -o test/lfnoise-linux-git.flac --format=flac test/lfnoise.csd | |
cp test/*.flac artifacts | |
risset show else | |
risset man mtro | |
risset info --full | |
risset makedocs | |
echo "Uninstalling risset" | |
risset remove klib else | |
pip uninstall --yes risset | |
- name: test install from pip | |
run: | | |
echo "******************* Test install from pip in linux **********************" | |
pip install risset -U | |
echo "Risset version: $(risset --version)" | |
risset update | |
risset list | |
risset install else klib | |
echo "-------------------------------" | |
echo "Checking that the plugin is installed and recognized by csound" | |
csound -z1 2>&1 | grep atstop | |
csound -o test/lfnoise-linux-pip.flac --format=flac test/lfnoise.csd | |
cp test/*.flac artifacts | |
risset show else | |
risset man mtro | |
risset info --full | |
risset makedocs | |
risset remove else klib | |
pip uninstall --yes risset | |
- uses: actions/upload-artifact@v3 | |
with: | |
path: artifacts/* | |
testwin: | |
name: Test risset on windows | |
runs-on: windows-latest | |
strategy: | |
matrix: | |
python-version: [ "3.9" ] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: windows - python ${{ matrix.python-version }} install csound | |
run: | | |
curl -L -o csound-binaries.zip https://github.com/csound/csound/releases/download/6.18.1/Csound-6.18.1-windows-x64-binaries.zip | |
Expand-Archive csound-binaries.zip -DestinationPath "C:\Program Files\csound-binaries" | |
ls -r "C:\Program Files\csound-binaries" | |
[Environment]::SetEnvironmentVariable("PATH", $Env:PATH + ";C:\Program Files\csound-binaries\build\Release", [EnvironmentVariableTarget]::Machine) | |
$Env:Path = $Env:Path + ";C:\Program Files\csound-binaries\build\Release" | |
Write-Output $Env:PATH | |
csound.exe --version | |
- name: windows - test install from git | |
run: | | |
$Env:Path = $Env:Path + ";C:\Program Files\csound-binaries\build\Release" | |
python -c "import platform; print('platform.machine: ', platform.machine())" | |
pip install . | |
risset update | |
risset list | |
risset install klib else | |
echo "-------------------------------" | |
echo "Checking that the plugin is installed and recognized by csound" | |
csound -z1 | Select-String "dict" | |
csound -o test/lfnoise-linux-pip.flac --format=flac test/lfnoise.csd | |
risset show else | |
risset man mtro | |
risset info --full | |
risset makedocs | |
risset remove klib else | |
pip uninstall --yes risset | |
testmacos: | |
name: Test risset on macos ${{ matrix.arch }} | |
runs-on: macos-latest | |
strategy: | |
matrix: | |
python-version: ["3.9"] | |
arch: ["x86_64"] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: macos - install csound | |
run: | | |
set -x | |
curl -L -o csound6.18.dmg https://github.com/csound/csound/releases/download/6.18.1/Csound-MacOS-universal-6.18.1.dmg | |
brew install p7zip | |
7z x csound6.18.dmg | |
cd Csound-universal-6.18.1 | |
sudo installer -pkg csound-MacOS-universal-6.18.1.pkg -target / | |
csound --version | |
uname -m | |
file $(which csound) | |
cd .. | |
- name: macos ${{ matrix.arch }} - test install from git | |
shell: bash | |
run: | | |
set -x | |
pip install . | |
risset update | |
risset list | |
risset install klib else | |
risset dev codesign | |
echo "-------------------------------" | |
echo "Checking that the plugin is installed and recognized by csound" | |
csound --version | |
# csound -z1 2>&1 | grep dict_ | |
csound -z1 || true # csound exits with 1 if there is some warning, so silence that | |
echo "Ok..." | |
csound -o test/lfnoise-macos-${{ matrix.arch }}-git.flac --format=flac test/lfnoise.csd | |
mkdir -p artifacts | |
cp test/*.flac artifacts | |
risset show else | |
risset man mtro | |
risset info --full | |
risset makedocs | |
risset remove klib else | |
pip uninstall --yes risset | |
- name: macos ${{ matrix.arch }} - test install from pip | |
run: | | |
pip install risset -U | |
risset update | |
risset list | |
risset install else | |
echo "-------------------------------" | |
echo "Checking that the plugin is installed and recognized by csound" | |
csound -z1 2>&1 | grep atstop | |
csound -o test/lfnoise-macos-${{ matrix.arch }}-pip.flac --format=flac test/lfnoise.csd | |
mkdir -p artifacts | |
cp test/*.flac artifacts | |
risset show else | |
risset man mtro | |
risset info --full | |
risset makedocs | |
risset remove else | |
pip uninstall --yes risset | |
- uses: actions/upload-artifact@v3 | |
with: | |
path: artifacts/* |