plugins.yml 3.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. # LYNX's own effects and instruments as VST3 / CLAP plugins for other hosts (round 180b, docs/PLUGIN_EXPORT.md).
  2. # Manual only, and nothing here is published: the plugins are not shipped yet (the user decides packaging and names).
  3. #
  4. # build (ubuntu) Zig cross build with LYNX_BUILD_PLUGINS=1: the .vst3 bundles, the .clap and plugexporttest.exe
  5. # check (windows) plugexporttest (scan, null test against the engine, automation, state, editor) on every plugin,
  6. # pluginval (strictness 10, no GUI tests) on the .vst3 and clap-validator on the .clap
  7. name: Plugins
  8. on:
  9. workflow_dispatch:
  10. permissions:
  11. contents: read
  12. env:
  13. ZIG_VERSION: 0.14.1
  14. ZIG_SHA256: 24aeeec8af16c381934a6cd7d95c807a8cb2cf7df9fa40d359aa884195c4716c
  15. JUCE_VERSION: 8.0.4
  16. JUCE_SHA256: 0effe9823a6fd8a4f98e5c08be7d308350e417b2d15dcf34011e778fefbbf005
  17. PLUGINVAL_VERSION: v1.0.4
  18. CLAP_VALIDATOR_URL: https://github.com/free-audio/clap-validator/releases/download/0.4.1/clap-validator-0.4.1-127-g152b982-windows.zip
  19. jobs:
  20. build:
  21. name: Build the plugins (Windows x64)
  22. runs-on: ubuntu-24.04
  23. steps:
  24. - uses: actions/checkout@v5
  25. - name: Cache toolchain
  26. id: cache
  27. uses: actions/cache@v5
  28. with:
  29. path: ~/opt
  30. key: toolchain-zig${{ env.ZIG_VERSION }}-juce${{ env.JUCE_VERSION }}-${{ env.ZIG_SHA256 }}-${{ env.JUCE_SHA256 }}
  31. - name: Download Zig and JUCE
  32. if: steps.cache.outputs.cache-hit != 'true'
  33. shell: bash
  34. run: |
  35. mkdir -p ~/opt && cd ~/opt
  36. curl -fsSL -o zig.tar.xz "https://ziglang.org/download/$ZIG_VERSION/zig-x86_64-linux-$ZIG_VERSION.tar.xz"
  37. echo "$ZIG_SHA256 zig.tar.xz" | sha256sum -c -
  38. tar xf zig.tar.xz && rm zig.tar.xz
  39. curl -fsSL -o juce.tar.gz "https://github.com/juce-framework/JUCE/archive/refs/tags/$JUCE_VERSION.tar.gz"
  40. echo "$JUCE_SHA256 juce.tar.gz" | sha256sum -c -
  41. tar xzf juce.tar.gz && mv "JUCE-$JUCE_VERSION" "juce-$JUCE_VERSION" && rm juce.tar.gz
  42. - name: Build
  43. shell: bash
  44. run: |
  45. LYNX_BUILD_PLUGINS=1 ZIG="$HOME/opt/zig-x86_64-linux-$ZIG_VERSION/zig" JUCE_DIR="$HOME/opt/juce-$JUCE_VERSION" OUT=build-win \
  46. ./scripts/build-windows-zig.sh 2>&1 | grep -v '^1 warning generated\.$'
  47. mkdir -p out && cp -r build-win/plugins out/ && cp build-win/plugexporttest.exe out/
  48. find out -type f -printf '%s %p\n'
  49. - uses: actions/upload-artifact@v7
  50. with:
  51. name: LYNX-plugins-windows-x64-unsigned
  52. path: out/*
  53. check:
  54. name: Check the plugins
  55. needs: build
  56. runs-on: windows-2022
  57. steps:
  58. - uses: actions/download-artifact@v7
  59. with:
  60. name: LYNX-plugins-windows-x64-unsigned
  61. path: out
  62. - name: Host test, pluginval, clap-validator
  63. shell: bash
  64. env:
  65. LYNX_TEST_MODE: '1'
  66. run: |
  67. set -o pipefail
  68. export LYNX_PROFILE_DIR="$RUNNER_TEMP/profile"
  69. curl -fsSL -o pv.zip "https://github.com/Tracktion/pluginval/releases/download/$PLUGINVAL_VERSION/pluginval_Windows.zip" && unzip -q pv.zip -d pv
  70. curl -fsSL -o cv.zip "$CLAP_VALIDATOR_URL" && unzip -q cv.zip -d cv
  71. fail=0
  72. for p in out/plugins/*.vst3 out/plugins/*.clap; do
  73. ./out/plugexporttest.exe "$p" "report-$(basename "$p").txt" || fail=1
  74. done
  75. for p in out/plugins/*.vst3; do
  76. ./pv/pluginval.exe --validate "$p" --strictness-level 10 --skip-gui-tests --validate-in-process --timeout-ms 120000 || fail=1
  77. done
  78. for p in out/plugins/*.clap; do
  79. "$(find cv -name clap-validator.exe | head -1)" validate --in-process "$p" || fail=1
  80. done
  81. exit $fail