File tree 2 files changed +41
-4
lines changed
2 files changed +41
-4
lines changed Original file line number Diff line number Diff line change
1
+ name : build
2
+
3
+ on : [push]
4
+
5
+ jobs :
6
+ ubuntu-build :
7
+ runs-on : ubuntu-latest
8
+ steps :
9
+ - uses : actions/checkout@v4
10
+ - run : sudo apt install verilator
11
+ - run : verilator --version
12
+ - run : wget https://vcvrack.com/downloads/Rack-SDK-2.4.1-lin-x64.zip
13
+ - run : unzip Rack-SDK*.zip && rm Rack-SDK*.zip
14
+ - run : make RACK_DIR=`pwd`/Rack-SDK
15
+ - uses : actions/pload-artifact@v4
16
+ with :
17
+ name : plugin
18
+ path : |
19
+ plugin.so
20
+ plugin.json
21
+
22
+ macos-build :
23
+ runs-on : macos-latest
24
+ steps :
25
+ - uses : actions/checkout@v4
26
+ - run : brew install verilator
27
+ - run : verilator --version
28
+ - run : wget https://vcvrack.com/downloads/Rack-SDK-2.4.1-mac-x64.zip
29
+ - run : unzip Rack-SDK*.zip && rm Rack-SDK*.zip
30
+ - run : make RACK_DIR=`pwd`/Rack-SDK
31
+ - uses : actions/pload-artifact@v4
32
+ with :
33
+ name : plugin
34
+ path : |
35
+ plugin.so
36
+ plugin.json
Original file line number Diff line number Diff line change @@ -10,16 +10,15 @@ VERILATED_OBJ=Vcore__ALL.a
10
10
11
11
# FLAGS will be passed to both the C and C++ compiler
12
12
FLAGS += -I$(VERILATOR_ROOT ) /include -faligned-new
13
- CFLAGS +=
14
- CXXFLAGS +=
15
13
16
14
# Careful about linking to shared libraries, since you can't assume much about the user's environment and library search path.
17
15
# Static libraries are fine, but they should be added to this plugin's build system.
18
- # LDFLAGS += -L$(VERILATED_PATH) -l:$(VERILATED_OBJ)
19
16
OBJECTS += $(VERILATED_PATH ) /$(VERILATED_OBJ )
20
17
21
18
# Add .cpp files to the build
22
- SOURCES += $(wildcard src/* .cpp) $(VERILATOR_ROOT ) /include/verilated.cpp
19
+ SOURCES += $(wildcard src/* .cpp) \
20
+ $(VERILATOR_ROOT ) /include/verilated.cpp \
21
+ $(VERILATOR_ROOT ) /include/verilated_threads.cpp
23
22
24
23
# Add files to the ZIP package when running `make dist`
25
24
# The compiled plugin and "plugin.json" are automatically added.
@@ -38,3 +37,5 @@ src/eurorack-pmod.cpp: $(VERILATED_PATH)/$(VERILATED_OBJ)
38
37
39
38
# Include the Rack plugin Makefile framework
40
39
include $(RACK_DIR ) /plugin.mk
40
+
41
+ CXXFLAGS := $(filter-out -std=c++11,$(CXXFLAGS ) )
You can’t perform that action at this time.
0 commit comments