Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
212 changes: 67 additions & 145 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,170 +4,92 @@ on:
push:

env:
HVCC_VERSION: 424308377a8b0e4291e0bfda3bcf68ae9fd88f33
HVCC_COMMIT_HASH: e04604782a027980f19b111439f434dc13098438
CACHE_VERSION: 1
DEBIAN_FRONTEND: noninteractive
GIT_LFS_SKIP_SMUDGE: 1

jobs:
linux-x86_64:
runs-on: ubuntu-20.04
linux:
strategy:
matrix:
target: [linux-arm64, linux-armhf, linux-i686, linux-riscv64, linux-x86_64]
runs-on: ubuntu-latest
container:
image: ubuntu:20.04
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
submodules: recursive
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install dependencies
- name: Install git
run: |
python -m pip install --upgrade pip
python -m pip install git+https://github.com/Wasted-Audio/hvcc.git@${{ env.HVCC_VERSION }}
sudo apt-get update -qq
sudo apt-get install -yqq libgl1-mesa-dev

- name: Build plugins
run: |
hvcc wstd_dlay.pd -n WSTD_DLAY -m wstd_dlay.json -o WSTD_DLAY -g dpf -p dep/heavylib/ dep/ --copyright "Copyright (c) Wasted Audio 2023 - GPL-3.0-or-later"
cp override/* WSTD_DLAY/plugin/source/
make -C WSTD_DLAY WITH_LTO=true -j $(nproc)

- name: Set sha8 (non-release)
if: startsWith(github.ref, 'refs/tags/') != true
id: slug1
run: echo "action_tag=$(echo ${{ github.sha }} | cut -c1-8)" >> $GITHUB_ENV
- name: Set tag (release)
if: startsWith(github.ref, 'refs/tags/')
id: slug2
run: echo "action_tag=$(echo ${{ github.ref_name }})" >> $GITHUB_ENV

- name: Pack binaries
apt-get update -qq && apt-get install -yqq --no-install-recommends ca-certificates curl git openssl
curl -sLO https://launchpad.net/~kxstudio-debian/+archive/ubuntu/toolchain/+files/git_2.34.1-1ubuntu1~bpo20.04.1~ppa1_amd64.deb
curl -sLO https://launchpad.net/~kxstudio-debian/+archive/ubuntu/toolchain/+files/git-man_2.34.1-1ubuntu1~bpo20.04.1~ppa1_all.deb
dpkg -i *.deb
rm *.deb
- name: Install and use python3.9
run: |
cd WSTD_DLAY
mv bin WSTD_DLAY
tar -c -h -z -f ${{ github.event.repository.name }}-linux-x86_64-${{ github.event.pull_request.number || env.action_tag }}.tar.gz WSTD_DLAY/
- uses: actions/upload-artifact@v3
apt-get install -yqq python3 python3.9
update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.9 1
- name: Install pip
run: apt-get install -yqq --no-install-recommends python3-pip
- name: Checkout repository
uses: actions/checkout@v4
with:
name: ${{ github.event.repository.name }}-linux-x86_64-${{ github.event.pull_request.number || env.action_tag }}
path: |
WSTD_DLAY/*.tar.gz

- uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
submodules: recursive
- uses: distrho/dpf-makefile-action@v1
with:
tag_name: ${{ github.ref_name }}
name: ${{ github.ref_name }}
draft: false
prerelease: false
files: |
WSTD_DLAY/*.tar.gz

win64:
runs-on: ubuntu-20.04
target: ${{ matrix.target }}
hvcc: True
dpf_path: 'dep/dpf'

windows:
strategy:
matrix:
target: [win32, win64]
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up Python
uses: actions/setup-python@v4
- uses: distrho/dpf-makefile-action@v1
with:
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install git+https://github.com/Wasted-Audio/hvcc.git@${{ env.HVCC_VERSION }}
sudo apt-get update -qq
sudo apt-get install -yqq binutils-mingw-w64-x86-64 g++-mingw-w64-x86-64 mingw-w64 wine-stable

- name: Build win64 cross-compiled plugins
env:
CC: x86_64-w64-mingw32-gcc
CXX: x86_64-w64-mingw32-g++
EXE_WRAPPER: wine
PKG_CONFIG: "false"
WINEDEBUG: "-all"
run: |
hvcc wstd_dlay.pd -n WSTD_DLAY -m wstd_dlay.json -o WSTD_DLAY -g dpf -p dep/heavylib/ dep/ --copyright "Copyright (c) Wasted Audio 2023 - GPL-3.0-or-later"
cp override/* WSTD_DLAY/plugin/source/
make -C WSTD_DLAY WITH_LTO=true -j $(nproc)

- name: Set sha8 (non-release)
if: startsWith(github.ref, 'refs/tags/') != true
id: slug1
run: echo "action_tag=$(echo ${{ github.sha }} | cut -c1-8)" >> $GITHUB_ENV
- name: Set tag (release)
if: startsWith(github.ref, 'refs/tags/')
id: slug2
run: echo "action_tag=$(echo ${{ github.ref_name }})" >> $GITHUB_ENV
- name: Pack binaries
run: |
cd WSTD_DLAY
mv bin WSTD_DLAY
tar -c -h -z -f ${{ github.event.repository.name }}-win64-${{ github.event.pull_request.number || env.action_tag }}.tar.gz WSTD_DLAY/
- uses: actions/upload-artifact@v3
target: ${{ matrix.target }}
hvcc: True
dpf_path: 'dep/dpf'

macos:
strategy:
matrix:
target: [macos-intel, macos-universal]
runs-on: macos-13
steps:
- uses: actions/checkout@v4
with:
name: ${{ github.event.repository.name }}-win64-${{ github.event.pull_request.number || env.action_tag }}
path: |
WSTD_DLAY/*.tar.gz

- uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
submodules: recursive
- uses: distrho/dpf-makefile-action@v1
with:
tag_name: ${{ github.ref_name }}
name: ${{ github.ref_name }}
draft: false
prerelease: false
files: |
WSTD_DLAY/*.tar.gz
target: ${{ matrix.target }}
hvcc: True
dpf_path: 'dep/dpf'

macos-universal:
runs-on: macos-11
pluginval:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up Python
uses: actions/setup-python@v4
- uses: distrho/dpf-makefile-action@v1
with:
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install git+https://github.com/Wasted-Audio/hvcc.git@${{ env.HVCC_VERSION }}
target: pluginval
hvcc: True
dpf_path: 'dep/dpf'

- name: Build macOS universal plugins
env:
CFLAGS: -arch x86_64 -arch arm64 -DMAC_OS_X_VERSION_MAX_ALLOWED=MAC_OS_X_VERSION_10_12 -mmacosx-version-min=10.12 -mtune=generic -msse -msse2
CXXFLAGS: -arch x86_64 -arch arm64 -DMAC_OS_X_VERSION_MAX_ALLOWED=MAC_OS_X_VERSION_10_12 -mmacosx-version-min=10.12 -mtune=generic -msse -msse2
LDFLAGS: -arch x86_64 -arch arm64 -mmacosx-version-min=10.12
run: |
hvcc wstd_dlay.pd -n WSTD_DLAY -m wstd_dlay.json -o WSTD_DLAY -g dpf -p dep/heavylib/ dep/ --copyright "Copyright (c) Wasted Audio 2023 - GPL-3.0-or-later"
cp override/* WSTD_DLAY/plugin/source/
make -C WSTD_DLAY NOOPT=true WITH_LTO=true -j $(sysctl -n hw.logicalcpu)
cd WSTD_DLAY
../dep/dpf/utils/package-osx-bundles.sh

- name: Set sha8 (non-release)
if: startsWith(github.ref, 'refs/tags/') != true
id: slug1
run: echo "action_tag=$(echo ${{ github.sha }} | cut -c1-8)" >> $GITHUB_ENV
- name: Set tag (release)
if: startsWith(github.ref, 'refs/tags/')
id: slug2
run: echo "action_tag=$(echo ${{ github.ref_name }})" >> $GITHUB_ENV

- uses: actions/upload-artifact@v3
source:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
name: ${{ github.event.repository.name }}-macOS-universal-${{ github.event.pull_request.number || env.action_tag }}
path: |
WSTD_DLAY/*-macOS.pkg

- uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
submodules: recursive
- uses: distrho/dpf-makefile-action@v1
with:
tag_name: ${{ github.ref_name }}
name: ${{ github.ref_name }}
draft: false
prerelease: false
files: |
WSTD_DLAY/*-macOS.pkg
target: source
19 changes: 19 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/usr/bin/make -f

include dep/dpf/Makefile.base.mk

PLUGINS = WSTD_DLAY
PREGEN = $(PLUGINS:%=%/plugin/source)

all: build

build: pregen
$(foreach p, $(PLUGINS), $(MAKE) -C $(p);)
mkdir bin
$(foreach p, $(PLUGINS), mv $(p)/bin/* bin/;)

pregen: $(PREGEN)

%/plugin/source: %.json %.pd override/*.*
hvcc $*.pd -m $*.json -n $* -o $* -g dpf -p dep/heavylib/ dep/ --copyright "Copyright (c) Wasted Audio 2023 - GPL-3.0-or-later"
cp override/*.* $*/plugin/source/
6 changes: 5 additions & 1 deletion wstd_dlay.json → WSTD_DLAY.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"wstd.clrs"
],
"enable_ui": true,
"enable_modgui": true,
"enable_modgui": false,
"ui_size": {
"width": 490,
"height": 180
Expand All @@ -31,6 +31,10 @@
]
},
"version": "1, 0, 0",
"maker": "Wasted Audio",
"brand_id": "Wstd",
"brand_id_no_vst3": true,
"unique_id": "Dlay",
"license": "GPL-3.0-or-later",
"homepage": "https://wasted.audio/software/wstd_dlay",
"plugin_uri": "https://wasted.audio/software/wstd_dlay",
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion dep/dpf
Submodule dpf updated 196 files
2 changes: 1 addition & 1 deletion dep/dpf-widgets
Submodule dpf-widgets updated 39 files
+3 −0 .editorconfig
+1 −0 .gitignore
+96 −7 README.md
+666 −0 generic/LVGL.cpp
+162 −0 generic/LVGL.hpp
+218 −64 opengl/DearImGui.cpp
+18 −1 opengl/DearImGui.hpp
+1 −1 opengl/DearImGui/LICENSE.txt
+2 −1 opengl/DearImGui/README.txt
+24 −0 opengl/DearImGui/dpf-changes.diff
+48 −30 opengl/DearImGui/imconfig.h
+8,056 −3,622 opengl/DearImGui/imgui.cpp
+1,762 −908 opengl/DearImGui/imgui.h
+5,110 −2,278 opengl/DearImGui/imgui_demo.cpp
+1,161 −517 opengl/DearImGui/imgui_draw.cpp
+62 −26 opengl/DearImGui/imgui_impl_opengl2.cpp
+11 −2 opengl/DearImGui/imgui_impl_opengl2.h
+301 −114 opengl/DearImGui/imgui_impl_opengl3.cpp
+21 −10 opengl/DearImGui/imgui_impl_opengl3.h
+1,542 −763 opengl/DearImGui/imgui_internal.h
+845 −369 opengl/DearImGui/imgui_tables.cpp
+3,746 −1,600 opengl/DearImGui/imgui_widgets.cpp
+15 −27 opengl/DearImGui/imstb_rectpack.h
+157 −137 opengl/DearImGui/imstb_textedit.h
+504 −322 opengl/DearImGui/imstb_truetype.h
+38 −22 opengl/DearImGuiColorTextEditor.cpp
+8 −1 opengl/DearImGuiColorTextEditor.hpp
+45 −37 opengl/DearImGuiColorTextEditor/TextEditor.cpp
+4 −1 opengl/DearImGuiColorTextEditor/TextEditor.h
+2 −2 opengl/DearImGuiToggle/imgui_toggle_renderer.cpp
+831 −98 opengl/Quantum.cpp
+202 −24 opengl/Quantum.hpp
+ screenshots/Blendish.png
+1 −1 tests/Makefile
+0 −1 tests/imgui.cpp
+25 −0 tests/lvgl/CMakeLists.txt
+1,013 −0 tests/lvgl/lv_conf.h
+80 −0 tests/lvgl/lvgl.cpp
+1 −1 tests/opengl.cpp
2 changes: 1 addition & 1 deletion dep/wstd.clrs
2 changes: 1 addition & 1 deletion dep/wstd.cmpnnts
Submodule wstd.cmpnnts updated 11 files
+213 −0 3route.pd
+25 −0 crshr~.pd
+28 −28 dbcalc.pd
+114 −96 dlay.pd
+61 −47 eq_pass.pd
+35 −0 fldr~.pd
+62 −0 linmix.pd
+48 −0 lmtr~.pd
+110 −0 manglr.pd
+35 −0 manglr_st.pd
+31 −0 tgl~.pd
Loading