Skip to content

Commit 1f0e5f5

Browse files
committed
add basic CI
1 parent 50758c3 commit 1f0e5f5

File tree

2 files changed

+41
-4
lines changed

2 files changed

+41
-4
lines changed

.github/workflows/main.yml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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

Makefile

+5-4
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,15 @@ VERILATED_OBJ=Vcore__ALL.a
1010

1111
# FLAGS will be passed to both the C and C++ compiler
1212
FLAGS += -I$(VERILATOR_ROOT)/include -faligned-new
13-
CFLAGS +=
14-
CXXFLAGS +=
1513

1614
# Careful about linking to shared libraries, since you can't assume much about the user's environment and library search path.
1715
# Static libraries are fine, but they should be added to this plugin's build system.
18-
#LDFLAGS += -L$(VERILATED_PATH) -l:$(VERILATED_OBJ)
1916
OBJECTS += $(VERILATED_PATH)/$(VERILATED_OBJ)
2017

2118
# 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
2322

2423
# Add files to the ZIP package when running `make dist`
2524
# The compiled plugin and "plugin.json" are automatically added.
@@ -38,3 +37,5 @@ src/eurorack-pmod.cpp: $(VERILATED_PATH)/$(VERILATED_OBJ)
3837

3938
# Include the Rack plugin Makefile framework
4039
include $(RACK_DIR)/plugin.mk
40+
41+
CXXFLAGS := $(filter-out -std=c++11,$(CXXFLAGS))

0 commit comments

Comments
 (0)