From 33dd71c4593806d2b2024a822ee2131984286d39 Mon Sep 17 00:00:00 2001 From: dreamer Date: Tue, 31 Oct 2023 11:29:31 +0100 Subject: [PATCH 1/7] try dpf-actions --- .github/workflows/build.yml | 275 +++++++++++++++++++----------------- 1 file changed, 142 insertions(+), 133 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5177ee2..4d320e9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,6 +8,9 @@ env: jobs: linux-x86_64: + strategy: + matrix: + target: [linux-x86_64] runs-on: ubuntu-20.04 steps: - name: Checkout repository @@ -22,150 +25,156 @@ jobs: 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 + # sudo apt-get update -qq + # sudo apt-get install -yqq libgl1-mesa-dev - - name: Build plugins + - name: Export C/C++ run: | hvcc wstd_eq.pd -n WSTD_EQ -m wstd_eq.json -o WSTD_EQ -g dpf -p dep/heavylib/ dep/ --copyright "Copyright (c) Wasted Audio 2023 - GPL-3.0-or-later" cp override/* WSTD_EQ/plugin/source/ - make -C WSTD_EQ 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_EQ - mv bin WSTD_EQ - tar -c -h -z -f ${{ github.event.repository.name }}-linux-x86_64-${{ github.event.pull_request.number || env.action_tag }}.tar.gz WSTD_EQ/ - - uses: actions/upload-artifact@v3 - with: - name: ${{ github.event.repository.name }}-linux-x86_64-${{ github.event.pull_request.number || env.action_tag }} - path: | - WSTD_EQ/*.tar.gz - - uses: softprops/action-gh-release@v1 - if: startsWith(github.ref, 'refs/tags/') + - name: Build plugins + uses: distrho/dpf-makefile-action@v1 with: - tag_name: ${{ github.ref_name }} - name: ${{ github.ref_name }} - draft: false - prerelease: false - files: | - WSTD_EQ/*.tar.gz + target: ${{ matrix.target }} + dpf_path: 'dep/dpf' + extraargs: '-C WSTD_EQ' - win64: - runs-on: 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 - 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: 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: 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_eq.pd -n WSTD_EQ -m wstd_eq.json -o WSTD_EQ -g dpf -p dep/heavylib/ dep/ --copyright "Copyright (c) Wasted Audio 2023 - GPL-3.0-or-later" - cp override/* WSTD_EQ/plugin/source/ - make -C WSTD_EQ WITH_LTO=true -j $(nproc) + # - name: Pack binaries + # run: | + # cd WSTD_EQ + # mv bin WSTD_EQ + # tar -c -h -z -f ${{ github.event.repository.name }}-linux-x86_64-${{ github.event.pull_request.number || env.action_tag }}.tar.gz WSTD_EQ/ + # - uses: actions/upload-artifact@v3 + # with: + # name: ${{ github.event.repository.name }}-linux-x86_64-${{ github.event.pull_request.number || env.action_tag }} + # path: | + # WSTD_EQ/*.tar.gz + # - uses: softprops/action-gh-release@v1 + # if: startsWith(github.ref, 'refs/tags/') + # with: + # tag_name: ${{ github.ref_name }} + # name: ${{ github.ref_name }} + # draft: false + # prerelease: false + # files: | + # WSTD_EQ/*.tar.gz - - 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_EQ - mv bin WSTD_EQ - tar -c -h -z -f ${{ github.event.repository.name }}-win64-${{ github.event.pull_request.number || env.action_tag }}.tar.gz WSTD_EQ/ - - uses: actions/upload-artifact@v3 - with: - name: ${{ github.event.repository.name }}-win64-${{ github.event.pull_request.number || env.action_tag }} - path: | - WSTD_EQ/*.tar.gz - - uses: softprops/action-gh-release@v1 - if: startsWith(github.ref, 'refs/tags/') - with: - tag_name: ${{ github.ref_name }} - name: ${{ github.ref_name }} - draft: false - prerelease: false - files: | - WSTD_EQ/*.tar.gz + # win64: + # runs-on: 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 + # 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 - macos-universal: - runs-on: macos-11 - steps: - - uses: actions/checkout@v3 - with: - submodules: recursive - - name: Set up Python - uses: actions/setup-python@v4 - 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 }} + # - 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_eq.pd -n WSTD_EQ -m wstd_eq.json -o WSTD_EQ -g dpf -p dep/heavylib/ dep/ --copyright "Copyright (c) Wasted Audio 2023 - GPL-3.0-or-later" + # cp override/* WSTD_EQ/plugin/source/ + # make -C WSTD_EQ WITH_LTO=true -j $(nproc) - - 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_eq.pd -n WSTD_EQ -m wstd_eq.json -o WSTD_EQ -g dpf -p dep/heavylib/ dep/ --copyright "Copyright (c) Wasted Audio 2023 - GPL-3.0-or-later" - cp override/* WSTD_EQ/plugin/source/ - make -C WSTD_EQ NOOPT=true WITH_LTO=true -j $(sysctl -n hw.logicalcpu) - cd WSTD_EQ - ../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 + # - name: Pack binaries + # run: | + # cd WSTD_EQ + # mv bin WSTD_EQ + # tar -c -h -z -f ${{ github.event.repository.name }}-win64-${{ github.event.pull_request.number || env.action_tag }}.tar.gz WSTD_EQ/ + # - uses: actions/upload-artifact@v3 + # with: + # name: ${{ github.event.repository.name }}-win64-${{ github.event.pull_request.number || env.action_tag }} + # path: | + # WSTD_EQ/*.tar.gz + # - uses: softprops/action-gh-release@v1 + # if: startsWith(github.ref, 'refs/tags/') + # with: + # tag_name: ${{ github.ref_name }} + # name: ${{ github.ref_name }} + # draft: false + # prerelease: false + # files: | + # WSTD_EQ/*.tar.gz - - 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 + # macos-universal: + # runs-on: macos-11 + # steps: + # - uses: actions/checkout@v3 + # with: + # submodules: recursive + # - name: Set up Python + # uses: actions/setup-python@v4 + # 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 }} - - uses: actions/upload-artifact@v3 - with: - name: ${{ github.event.repository.name }}-macOS-universal-${{ github.event.pull_request.number || env.action_tag }} - path: | - WSTD_EQ/*-macOS.pkg + # - 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_eq.pd -n WSTD_EQ -m wstd_eq.json -o WSTD_EQ -g dpf -p dep/heavylib/ dep/ --copyright "Copyright (c) Wasted Audio 2023 - GPL-3.0-or-later" + # cp override/* WSTD_EQ/plugin/source/ + # make -C WSTD_EQ NOOPT=true WITH_LTO=true -j $(sysctl -n hw.logicalcpu) + # cd WSTD_EQ + # ../dep/dpf/utils/package-osx-bundles.sh - - uses: softprops/action-gh-release@v1 - if: startsWith(github.ref, 'refs/tags/') - with: - tag_name: ${{ github.ref_name }} - name: ${{ github.ref_name }} - draft: false - prerelease: false - files: | - WSTD_EQ/*-macOS.pkg + # - 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 + # with: + # name: ${{ github.event.repository.name }}-macOS-universal-${{ github.event.pull_request.number || env.action_tag }} + # path: | + # WSTD_EQ/*-macOS.pkg + + # - uses: softprops/action-gh-release@v1 + # if: startsWith(github.ref, 'refs/tags/') + # with: + # tag_name: ${{ github.ref_name }} + # name: ${{ github.ref_name }} + # draft: false + # prerelease: false + # files: | + # WSTD_EQ/*-macOS.pkg From c702530372378e07638b51b8ef227799e043b39b Mon Sep 17 00:00:00 2001 From: dreamer Date: Tue, 31 Oct 2023 12:27:41 +0100 Subject: [PATCH 2/7] try with makefile --- .github/workflows/build.yml | 6 ------ Makefile | 14 ++++++++++++++ wstd_eq.json => WSTD_EQ.json | 0 wstd_eq.pd => WSTD_EQ.pd | 0 4 files changed, 14 insertions(+), 6 deletions(-) create mode 100644 Makefile rename wstd_eq.json => WSTD_EQ.json (100%) rename wstd_eq.pd => WSTD_EQ.pd (100%) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4d320e9..c333dfe 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -28,17 +28,11 @@ jobs: # sudo apt-get update -qq # sudo apt-get install -yqq libgl1-mesa-dev - - name: Export C/C++ - run: | - hvcc wstd_eq.pd -n WSTD_EQ -m wstd_eq.json -o WSTD_EQ -g dpf -p dep/heavylib/ dep/ --copyright "Copyright (c) Wasted Audio 2023 - GPL-3.0-or-later" - cp override/* WSTD_EQ/plugin/source/ - - name: Build plugins uses: distrho/dpf-makefile-action@v1 with: target: ${{ matrix.target }} dpf_path: 'dep/dpf' - extraargs: '-C WSTD_EQ' # - name: Set sha8 (non-release) # if: startsWith(github.ref, 'refs/tags/') != true diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..5e8d297 --- /dev/null +++ b/Makefile @@ -0,0 +1,14 @@ +PLUGINS = WSTD_EQ +TARGETS = $(PLUGINS:%=%/generated.cpp) + +all: build + +build: pregen + $(foreach p,$(PLUGINS),$(MAKE) -C $(p)) + +pregen: $(TARGETS) + +%/generated.cpp: %.pd + # generate files + hvcc %.pd -n % -m %.json -o % -g dpf -p dep/heavylib/ dep/ --copyright "Copyright (c) Wasted Audio 2023 - GPL-3.0-or-later" + cp override/* %/plugin/source/ \ No newline at end of file diff --git a/wstd_eq.json b/WSTD_EQ.json similarity index 100% rename from wstd_eq.json rename to WSTD_EQ.json diff --git a/wstd_eq.pd b/WSTD_EQ.pd similarity index 100% rename from wstd_eq.pd rename to WSTD_EQ.pd From d8c2be4a3ca44656a1f8bb4990e6ff62cb45258e Mon Sep 17 00:00:00 2001 From: dreamer Date: Tue, 31 Oct 2023 12:50:21 +0100 Subject: [PATCH 3/7] use falktx suggested changes --- Makefile | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index 5e8d297..c8419b2 100644 --- a/Makefile +++ b/Makefile @@ -1,14 +1,17 @@ +#!/usr/bin/make -f + +include dep/dpf/Makefile.base.mk + PLUGINS = WSTD_EQ -TARGETS = $(PLUGINS:%=%/generated.cpp) +PREGEN = $(PLUGINS:%=%/plugin/source) all: build build: pregen - $(foreach p,$(PLUGINS),$(MAKE) -C $(p)) + $(foreach p,$(PLUGINS),$(MAKE) DPF_TARGET_DIR=$(CURDIR)/bin -C $(p)) -pregen: $(TARGETS) +pregen: $(PREGEN) -%/generated.cpp: %.pd - # generate files - hvcc %.pd -n % -m %.json -o % -g dpf -p dep/heavylib/ dep/ --copyright "Copyright (c) Wasted Audio 2023 - GPL-3.0-or-later" - cp override/* %/plugin/source/ \ No newline at end of file +%/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/ From bd9762022e4a9eade0477d315fb1e0aff773eac8 Mon Sep 17 00:00:00 2001 From: dromer Date: Mon, 15 Sep 2025 12:11:31 +0200 Subject: [PATCH 4/7] update workflow --- .github/workflows/build.yml | 38 +++++++++++++++++++++---------------- 1 file changed, 22 insertions(+), 16 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c333dfe..73ff8fa 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -4,34 +4,40 @@ on: push: env: - HVCC_VERSION: 424308377a8b0e4291e0bfda3bcf68ae9fd88f33 + HVCC_COMMIT_HASH: 424308377a8b0e4291e0bfda3bcf68ae9fd88f33 + CACHE_VERSION: 1 + DEBIAN_FRONTEND: noninteractive jobs: linux-x86_64: strategy: matrix: target: [linux-x86_64] - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest + container: + image: ubuntu:20.04 steps: + - name: Install git + run: | + 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: | + 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@v3 + uses: actions/checkout@v4 with: submodules: recursive - - name: Set up Python - uses: actions/setup-python@v4 - 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 libgl1-mesa-dev - - - name: Build plugins - uses: distrho/dpf-makefile-action@v1 + - uses: distrho/dpf-makefile-action@v1 with: target: ${{ matrix.target }} + hvcc: True dpf_path: 'dep/dpf' # - name: Set sha8 (non-release) From b877879518d4f88d8c1820d5575948734f7600f0 Mon Sep 17 00:00:00 2001 From: dromer Date: Mon, 15 Sep 2025 12:18:54 +0200 Subject: [PATCH 5/7] add more builds --- .github/workflows/build.yml | 188 ++++++++++-------------------------- 1 file changed, 51 insertions(+), 137 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 73ff8fa..917527a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,10 +9,10 @@ env: DEBIAN_FRONTEND: noninteractive jobs: - linux-x86_64: + linux: strategy: matrix: - target: [linux-x86_64] + target: [linux-linux-arm64, linux-armhf, linux-i686, linux-riscv64, linux-x86_64] runs-on: ubuntu-latest container: image: ubuntu:20.04 @@ -40,141 +40,55 @@ jobs: hvcc: True dpf_path: 'dep/dpf' - # - 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_EQ - # mv bin WSTD_EQ - # tar -c -h -z -f ${{ github.event.repository.name }}-linux-x86_64-${{ github.event.pull_request.number || env.action_tag }}.tar.gz WSTD_EQ/ - # - uses: actions/upload-artifact@v3 - # with: - # name: ${{ github.event.repository.name }}-linux-x86_64-${{ github.event.pull_request.number || env.action_tag }} - # path: | - # WSTD_EQ/*.tar.gz - # - uses: softprops/action-gh-release@v1 - # if: startsWith(github.ref, 'refs/tags/') - # with: - # tag_name: ${{ github.ref_name }} - # name: ${{ github.ref_name }} - # draft: false - # prerelease: false - # files: | - # WSTD_EQ/*.tar.gz - - # win64: - # runs-on: 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 - # 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_eq.pd -n WSTD_EQ -m wstd_eq.json -o WSTD_EQ -g dpf -p dep/heavylib/ dep/ --copyright "Copyright (c) Wasted Audio 2023 - GPL-3.0-or-later" - # cp override/* WSTD_EQ/plugin/source/ - # make -C WSTD_EQ 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_EQ - # mv bin WSTD_EQ - # tar -c -h -z -f ${{ github.event.repository.name }}-win64-${{ github.event.pull_request.number || env.action_tag }}.tar.gz WSTD_EQ/ - # - uses: actions/upload-artifact@v3 - # with: - # name: ${{ github.event.repository.name }}-win64-${{ github.event.pull_request.number || env.action_tag }} - # path: | - # WSTD_EQ/*.tar.gz - # - uses: softprops/action-gh-release@v1 - # if: startsWith(github.ref, 'refs/tags/') - # with: - # tag_name: ${{ github.ref_name }} - # name: ${{ github.ref_name }} - # draft: false - # prerelease: false - # files: | - # WSTD_EQ/*.tar.gz - - # macos-universal: - # runs-on: macos-11 - # steps: - # - uses: actions/checkout@v3 - # with: - # submodules: recursive - # - name: Set up Python - # uses: actions/setup-python@v4 - # 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 }} - - # - 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_eq.pd -n WSTD_EQ -m wstd_eq.json -o WSTD_EQ -g dpf -p dep/heavylib/ dep/ --copyright "Copyright (c) Wasted Audio 2023 - GPL-3.0-or-later" - # cp override/* WSTD_EQ/plugin/source/ - # make -C WSTD_EQ NOOPT=true WITH_LTO=true -j $(sysctl -n hw.logicalcpu) - # cd WSTD_EQ - # ../dep/dpf/utils/package-osx-bundles.sh + windows: + strategy: + matrix: + target: [win32, win64] + runs-on: ubuntu-22.04 + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + submodules: recursive + - uses: distrho/dpf-makefile-action@v1 + with: + target: ${{ matrix.target }} + hvcc: True + dpf_path: 'dep/dpf' - # - 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 + macos: + strategy: + matrix: + target: [macos-intel, macos-universal] + runs-on: macos-13 + steps: + - uses: actions/checkout@v4 + with: + submodules: recursive + - uses: distrho/dpf-makefile-action@v1 + with: + target: ${{ matrix.target }} + hvcc: True + dpf_path: 'dep/dpf' - # - uses: actions/upload-artifact@v3 - # with: - # name: ${{ github.event.repository.name }}-macOS-universal-${{ github.event.pull_request.number || env.action_tag }} - # path: | - # WSTD_EQ/*-macOS.pkg + pluginval: + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v4 + with: + submodules: recursive + - uses: distrho/dpf-makefile-action@v1 + with: + target: pluginval + hvcc: True + dpf_path: 'dep/dpf' - # - uses: softprops/action-gh-release@v1 - # if: startsWith(github.ref, 'refs/tags/') - # with: - # tag_name: ${{ github.ref_name }} - # name: ${{ github.ref_name }} - # draft: false - # prerelease: false - # files: | - # WSTD_EQ/*-macOS.pkg + source: + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v4 + with: + submodules: recursive + - uses: distrho/dpf-makefile-action@v1 + with: + target: source From a144bfefb1f6017684a3caf863f04de67ccc2203 Mon Sep 17 00:00:00 2001 From: dromer Date: Mon, 15 Sep 2025 13:32:00 +0200 Subject: [PATCH 6/7] try to skip lfs; move binaries to upload path --- .github/workflows/build.yml | 1 + Makefile | 4 +++- WSTD_EQ.json | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 917527a..0ed831b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -7,6 +7,7 @@ env: HVCC_COMMIT_HASH: 424308377a8b0e4291e0bfda3bcf68ae9fd88f33 CACHE_VERSION: 1 DEBIAN_FRONTEND: noninteractive + GIT_LFS_SKIP_SMUDGE: 1 jobs: linux: diff --git a/Makefile b/Makefile index c8419b2..feb0a17 100644 --- a/Makefile +++ b/Makefile @@ -8,7 +8,9 @@ PREGEN = $(PLUGINS:%=%/plugin/source) all: build build: pregen - $(foreach p,$(PLUGINS),$(MAKE) DPF_TARGET_DIR=$(CURDIR)/bin -C $(p)) + $(foreach p, $(PLUGINS), $(MAKE) -C $(p);) + mkdir bin + $(foreach p, $(PLUGINS), mv $(p)/bin/* bin/;) pregen: $(PREGEN) diff --git a/WSTD_EQ.json b/WSTD_EQ.json index 5edc30b..dfc03db 100644 --- a/WSTD_EQ.json +++ b/WSTD_EQ.json @@ -6,7 +6,7 @@ "wstd.clrs" ], "enable_ui": true, - "enable_modgui": true, + "enable_modgui": false, "ui_size": { "width": 120, "height": 520 From be55fff8232f9961c87ea20e83efe0f10d7988e5 Mon Sep 17 00:00:00 2001 From: dromer Date: Mon, 15 Sep 2025 13:43:47 +0200 Subject: [PATCH 7/7] incorrect linux-arm64 name --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0ed831b..88d515c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,7 +13,7 @@ jobs: linux: strategy: matrix: - target: [linux-linux-arm64, linux-armhf, linux-i686, linux-riscv64, linux-x86_64] + target: [linux-arm64, linux-armhf, linux-i686, linux-riscv64, linux-x86_64] runs-on: ubuntu-latest container: image: ubuntu:20.04