Skip to content

Commit b3f9fe9

Browse files
committed
update deps and build
1 parent faa5399 commit b3f9fe9

7 files changed

Lines changed: 91 additions & 144 deletions

File tree

.github/workflows/build.yml

Lines changed: 65 additions & 141 deletions
Original file line numberDiff line numberDiff line change
@@ -4,168 +4,92 @@ on:
44
push:
55

66
env:
7-
HVCC_VERSION: 424308377a8b0e4291e0bfda3bcf68ae9fd88f33
7+
HVCC_COMMIT_HASH: 023bd292a3a3391ab60d80e28ded33f1f05669ea
8+
CACHE_VERSION: 1
9+
DEBIAN_FRONTEND: noninteractive
10+
GIT_LFS_SKIP_SMUDGE: 1
811

912
jobs:
10-
linux-x86_64:
11-
runs-on: ubuntu-20.04
13+
linux:
14+
strategy:
15+
matrix:
16+
target: [linux-arm64, linux-armhf, linux-i686, linux-riscv64, linux-x86_64]
17+
runs-on: ubuntu-latest
18+
container:
19+
image: ubuntu:20.04
1220
steps:
13-
- name: Checkout repository
14-
uses: actions/checkout@v3
15-
with:
16-
submodules: recursive
17-
- name: Set up Python
18-
uses: actions/setup-python@v4
19-
with:
20-
python-version: 3.9
21-
- name: Install dependencies
22-
run: |
23-
python -m pip install --upgrade pip
24-
python -m pip install git+https://github.com/Wasted-Audio/hvcc.git@${{ env.HVCC_VERSION }}
25-
sudo apt-get update -qq
26-
sudo apt-get install -yqq libgl1-mesa-dev
27-
28-
- name: Build plugins
21+
- name: Install git
2922
run: |
30-
hvcc wstd_smthr.pd -n WSTD_SMTHR -m wstd_smthr.json -o WSTD_SMTHR -g dpf -p dep/heavylib/ dep/ --copyright "Copyright (c) Wasted Audio 2023 - GPL-3.0-or-later"
31-
cp override/* WSTD_SMTHR/plugin/source/
32-
make -C WSTD_SMTHR WITH_LTO=true -j $(nproc)
33-
34-
- name: Set sha8 (non-release)
35-
if: startsWith(github.ref, 'refs/tags/') != true
36-
id: slug1
37-
run: echo "action_tag=$(echo ${{ github.sha }} | cut -c1-8)" >> $GITHUB_ENV
38-
- name: Set tag (release)
39-
if: startsWith(github.ref, 'refs/tags/')
40-
id: slug2
41-
run: echo "action_tag=$(echo ${{ github.ref_name }})" >> $GITHUB_ENV
42-
43-
- name: Pack binaries
23+
apt-get update -qq && apt-get install -yqq --no-install-recommends ca-certificates curl git openssl
24+
curl -sLO https://launchpad.net/~kxstudio-debian/+archive/ubuntu/toolchain/+files/git_2.34.1-1ubuntu1~bpo20.04.1~ppa1_amd64.deb
25+
curl -sLO https://launchpad.net/~kxstudio-debian/+archive/ubuntu/toolchain/+files/git-man_2.34.1-1ubuntu1~bpo20.04.1~ppa1_all.deb
26+
dpkg -i *.deb
27+
rm *.deb
28+
- name: Install and use python3.9
4429
run: |
45-
cd WSTD_SMTHR
46-
mv bin WSTD_SMTHR
47-
tar -c -h -z -f ${{ github.event.repository.name }}-linux-x86_64-${{ github.event.pull_request.number || env.action_tag }}.tar.gz WSTD_SMTHR/
48-
- uses: actions/upload-artifact@v3
30+
apt-get install -yqq python3 python3.9
31+
update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.9 1
32+
- name: Install pip
33+
run: apt-get install -yqq --no-install-recommends python3-pip
34+
- name: Checkout repository
35+
uses: actions/checkout@v4
4936
with:
50-
name: ${{ github.event.repository.name }}-linux-x86_64-${{ github.event.pull_request.number || env.action_tag }}
51-
path: |
52-
WSTD_SMTHR/*.tar.gz
53-
- uses: softprops/action-gh-release@v1
54-
if: startsWith(github.ref, 'refs/tags/')
37+
submodules: recursive
38+
- uses: distrho/dpf-makefile-action@v1
5539
with:
56-
tag_name: ${{ github.ref_name }}
57-
name: ${{ github.ref_name }}
58-
draft: false
59-
prerelease: false
60-
files: |
61-
WSTD_SMTHR/*.tar.gz
40+
target: ${{ matrix.target }}
41+
hvcc: True
42+
dpf_path: 'dep/dpf'
6243

63-
win64:
64-
runs-on: ubuntu-20.04
44+
windows:
45+
strategy:
46+
matrix:
47+
target: [win32, win64]
48+
runs-on: ubuntu-22.04
6549
steps:
6650
- name: Checkout repository
67-
uses: actions/checkout@v3
51+
uses: actions/checkout@v4
6852
with:
6953
submodules: recursive
70-
- name: Set up Python
71-
uses: actions/setup-python@v4
54+
- uses: distrho/dpf-makefile-action@v1
7255
with:
73-
python-version: 3.9
74-
- name: Install dependencies
75-
run: |
76-
python -m pip install --upgrade pip
77-
python -m pip install git+https://github.com/Wasted-Audio/hvcc.git@${{ env.HVCC_VERSION }}
78-
sudo apt-get update -qq
79-
sudo apt-get install -yqq binutils-mingw-w64-x86-64 g++-mingw-w64-x86-64 mingw-w64 wine-stable
56+
target: ${{ matrix.target }}
57+
hvcc: True
58+
dpf_path: 'dep/dpf'
8059

81-
- name: Build win64 cross-compiled plugins
82-
env:
83-
CC: x86_64-w64-mingw32-gcc
84-
CXX: x86_64-w64-mingw32-g++
85-
EXE_WRAPPER: wine
86-
PKG_CONFIG: "false"
87-
WINEDEBUG: "-all"
88-
run: |
89-
hvcc wstd_smthr.pd -n WSTD_SMTHR -m wstd_smthr.json -o WSTD_SMTHR -g dpf -p dep/heavylib/ dep/ --copyright "Copyright (c) Wasted Audio 2023 - GPL-3.0-or-later"
90-
cp override/* WSTD_SMTHR/plugin/source/
91-
make -C WSTD_SMTHR WITH_LTO=true -j $(nproc)
92-
93-
- name: Set sha8 (non-release)
94-
if: startsWith(github.ref, 'refs/tags/') != true
95-
id: slug1
96-
run: echo "action_tag=$(echo ${{ github.sha }} | cut -c1-8)" >> $GITHUB_ENV
97-
- name: Set tag (release)
98-
if: startsWith(github.ref, 'refs/tags/')
99-
id: slug2
100-
run: echo "action_tag=$(echo ${{ github.ref_name }})" >> $GITHUB_ENV
101-
- name: Pack binaries
102-
run: |
103-
cd WSTD_SMTHR
104-
mv bin WSTD_SMTHR
105-
tar -c -h -z -f ${{ github.event.repository.name }}-win64-${{ github.event.pull_request.number || env.action_tag }}.tar.gz WSTD_SMTHR/
106-
- uses: actions/upload-artifact@v3
60+
macos:
61+
strategy:
62+
matrix:
63+
target: [macos-intel, macos-universal]
64+
runs-on: macos-13
65+
steps:
66+
- uses: actions/checkout@v4
10767
with:
108-
name: ${{ github.event.repository.name }}-win64-${{ github.event.pull_request.number || env.action_tag }}
109-
path: |
110-
WSTD_SMTHR/*.tar.gz
111-
- uses: softprops/action-gh-release@v1
112-
if: startsWith(github.ref, 'refs/tags/')
68+
submodules: recursive
69+
- uses: distrho/dpf-makefile-action@v1
11370
with:
114-
tag_name: ${{ github.ref_name }}
115-
name: ${{ github.ref_name }}
116-
draft: false
117-
prerelease: false
118-
files: |
119-
WSTD_SMTHR/*.tar.gz
71+
target: ${{ matrix.target }}
72+
hvcc: True
73+
dpf_path: 'dep/dpf'
12074

121-
macos-universal:
122-
runs-on: macos-11
75+
pluginval:
76+
runs-on: ubuntu-22.04
12377
steps:
124-
- uses: actions/checkout@v3
78+
- uses: actions/checkout@v4
12579
with:
12680
submodules: recursive
127-
- name: Set up Python
128-
uses: actions/setup-python@v4
81+
- uses: distrho/dpf-makefile-action@v1
12982
with:
130-
python-version: 3.9
131-
- name: Install dependencies
132-
run: |
133-
python -m pip install --upgrade pip
134-
python -m pip install git+https://github.com/Wasted-Audio/hvcc.git@${{ env.HVCC_VERSION }}
83+
target: pluginval
84+
hvcc: True
85+
dpf_path: 'dep/dpf'
13586

136-
- name: Build macOS universal plugins
137-
env:
138-
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
139-
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
140-
LDFLAGS: -arch x86_64 -arch arm64 -mmacosx-version-min=10.12
141-
run: |
142-
hvcc wstd_smthr.pd -n WSTD_SMTHR -m wstd_smthr.json -o WSTD_SMTHR -g dpf -p dep/heavylib/ dep/ --copyright "Copyright (c) Wasted Audio 2023 - GPL-3.0-or-later"
143-
cp override/* WSTD_SMTHR/plugin/source/
144-
make -C WSTD_SMTHR NOOPT=true WITH_LTO=true -j $(sysctl -n hw.logicalcpu)
145-
cd WSTD_SMTHR
146-
../dep/dpf/utils/package-osx-bundles.sh
147-
148-
- name: Set sha8 (non-release)
149-
if: startsWith(github.ref, 'refs/tags/') != true
150-
id: slug1
151-
run: echo "action_tag=$(echo ${{ github.sha }} | cut -c1-8)" >> $GITHUB_ENV
152-
- name: Set tag (release)
153-
if: startsWith(github.ref, 'refs/tags/')
154-
id: slug2
155-
run: echo "action_tag=$(echo ${{ github.ref_name }})" >> $GITHUB_ENV
156-
157-
- uses: actions/upload-artifact@v3
87+
source:
88+
runs-on: ubuntu-22.04
89+
steps:
90+
- uses: actions/checkout@v4
15891
with:
159-
name: ${{ github.event.repository.name }}-macOS-universal-${{ github.event.pull_request.number || env.action_tag }}
160-
path: |
161-
WSTD_SMTHR/*-macOS.pkg
162-
163-
- uses: softprops/action-gh-release@v1
164-
if: startsWith(github.ref, 'refs/tags/')
92+
submodules: recursive
93+
- uses: distrho/dpf-makefile-action@v1
16594
with:
166-
tag_name: ${{ github.ref_name }}
167-
name: ${{ github.ref_name }}
168-
draft: false
169-
prerelease: false
170-
files: |
171-
WSTD_SMTHR/*-macOS.pkg
95+
target: source

Makefile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/usr/bin/make -f
2+
3+
include dep/dpf/Makefile.base.mk
4+
5+
PLUGINS = WSTD_SMTHR
6+
PREGEN = $(PLUGINS:%=%/plugin/source)
7+
8+
all: build
9+
10+
build: pregen
11+
$(foreach p, $(PLUGINS), $(MAKE) -C $(p);)
12+
mkdir bin
13+
$(foreach p, $(PLUGINS), mv $(p)/bin/* bin/;)
14+
15+
pregen: $(PREGEN)
16+
17+
%/plugin/source: %.json %.pd override/*.*
18+
hvcc $*.pd -m $*.json -n $* -o $* -g dpf -p dep/heavylib/ dep/ --copyright "Copyright (c) Wasted Audio 2023 - GPL-3.0-or-later"
19+
cp override/*.* $*/plugin/source/

wstd_smthr.json renamed to WSTD_SMTHR.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313
"midi_input": 0,
1414
"midi_output": 0,
1515
"version": "1, 0, 0",
16+
"maker": "Wasted Audio",
17+
"brand_id": "Wstd",
18+
"brand_id_no_vst3": true,
19+
"unique_id": "Smth",
1620
"license": "GPL-3.0-or-later",
1721
"homepage": "https://wasted.audio/software/wstd_smthr",
1822
"plugin_uri": "https://wasted.audio/software/wstd_smthr",
File renamed without changes.

dep/dpf

Submodule dpf updated 194 files

0 commit comments

Comments
 (0)