Skip to content

Commit

Permalink
Validate built plugins on CI, cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: falkTX <[email protected]>
  • Loading branch information
falkTX committed Oct 30, 2023
1 parent fa65bc6 commit 8d6abbf
Show file tree
Hide file tree
Showing 8 changed files with 68 additions and 3 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ jobs:
make PAWPAW_TARGET=linux-x86_64
# FIXME needs to run twice for now
make PAWPAW_TARGET=linux-x86_64
- name: Validate plugins
if: steps.cache.outputs.cache-hit == 'true'
run: |
./utils/plugin-builder/validate-plugins.sh
- name: Pack
if: steps.cache.outputs.cache-hit == 'true'
run: |
Expand Down Expand Up @@ -77,6 +81,10 @@ jobs:
make PAWPAW_TARGET=macos-universal-10.15
# FIXME needs to run twice for now
make PAWPAW_TARGET=macos-universal-10.15
- name: Validate plugins
if: steps.cache.outputs.cache-hit == 'true'
run: |
./utils/plugin-builder/validate-plugins.sh
- name: Pack
if: steps.cache.outputs.cache-hit == 'true'
run: |
Expand Down Expand Up @@ -121,6 +129,10 @@ jobs:
make PAWPAW_TARGET=win64
# FIXME needs to run twice for now
make PAWPAW_TARGET=win64
- name: Validate plugins
if: steps.cache.outputs.cache-hit == 'true'
run: |
./utils/plugin-builder/validate-plugins.sh
- name: Pack
if: steps.cache.outputs.cache-hit == 'true'
run: |
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ mod-ui/utils/libmod_utils$(SO_EXT): $(BOOTSTRAP_FILES) mod-ui/utils/utils.h mod-
# ---------------------------------------------------------------------------------------------------------------------

mod-host/mod-host.so: $(BOOTSTRAP_FILES)
./utils/run.sh $(PAWPAW_TARGET) $(MAKE) SKIP_READLINE=1 SKIP_FFTW335=1 -C mod-host
./utils/run.sh $(PAWPAW_TARGET) $(MAKE) MODAPP=1 SKIP_READLINE=1 SKIP_FFTW335=1 -C mod-host

# ---------------------------------------------------------------------------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion PawPaw
Submodule PawPaw updated 1 files
+0 −4 bootstrap-plugins.sh
2 changes: 1 addition & 1 deletion mod-host
2 changes: 2 additions & 0 deletions utils/debug/jackd
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ cd "$(dirname $0)/../../build"

export LANG=en_US.UTF-8
export PAWPAW_SKIP_LTO=1
export PAWPAW_QUIET=1

function convert_path() {
if [ -e jackd.exe ]; then
Expand Down Expand Up @@ -59,6 +60,7 @@ LV2_PATH+="${PATH_SEP}$(convert_path ${DOCS_DIR}/MOD App/lv2)"
export LV2_PATH

export MOD_KEYS_PATH="$(convert_path ${DOCS_DIR}/MOD App/keys/)"
export MOD_USER_FILES_DIR="$(convert_path ${DOCS_DIR}/MOD App/user-files)"

export JACK_NO_AUDIO_RESERVATION=1
export JACK_NO_START_SERVER=1
Expand Down
1 change: 1 addition & 0 deletions utils/debug/mod-ui
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ cd "$(dirname $0)/../../build"

export LANG=en_US.UTF-8
export PAWPAW_SKIP_LTO=1
export PAWPAW_QUIET=1

function convert_path() {
if [ -e jackd.exe ]; then
Expand Down
49 changes: 49 additions & 0 deletions utils/plugin-builder/validate-plugins.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
#!/bin/bash

# set -eE

cd "$(dirname $0)/../../build"

export LANG=en_US.UTF-8
export PAWPAW_SKIP_LTO=1
export PAWPAW_QUIET=1

function convert_path() {
if [ -e jackd.exe ]; then
echo "Z:\\$(echo ${@} | tr '/' '\\')"
else
echo ${@}
fi
}

if [ -e mod-ui.exe ]; then
source ../PawPaw/local.env win64
LV2_PATH="$(convert_path $(pwd)/plugins)"
OS_SEP="\\"
elif [ -e mod-app.app ]; then
source ../PawPaw/local.env macos-universal-10.15
LV2_PATH="$(pwd)/mod-app.app/Contents/PlugIns/LV2"
OS_SEP='/'
else
source ../PawPaw/local.env linux
LV2_PATH="$(pwd)/mod-app.app/Contents/PlugIns/LV2"
OS_SEP='/'
fi

export LV2_PATH

export CARLA_BRIDGE_DUMMY=1
export CARLA_BRIDGE_TESTING=1
export MOD_KEYS_PATH="$(convert_path ${DOCS_DIR}/MOD App/keys/)"
export MOD_USER_FILES_DIR="$(convert_path ${DOCS_DIR}/MOD App/user-files)"
export WINEDEBUG=-all

set -e

PLUGINS=($(${EXE_WRAPPER} "${PAWPAW_PREFIX}/lib/carla/carla-discovery-native${APP_EXT}" lv2 ":all" 2>/dev/null | tr -dC '[:print:]\n' | awk 'sub("carla-discovery::label::","")'))

for p in ${PLUGINS[@]}; do
uri=$(echo ${p} | cut -d "${OS_SEP}" -f 2)
echo "Testing ${uri}..."
${EXE_WRAPPER} "${PAWPAW_PREFIX}/lib/carla/carla-bridge-native${APP_EXT}" lv2 "" "${uri}" 1>/dev/null
done
1 change: 1 addition & 0 deletions utils/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ shift
# import env

export PAWPAW_SKIP_LTO=1
export PAWPAW_QUIET=1
source PawPaw/local.env ${target}

# ---------------------------------------------------------------------------------------------------------------------
Expand Down

0 comments on commit 8d6abbf

Please sign in to comment.