Skip to content

Commit dd4033e

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

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

.github/workflows/main.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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+
16+
macos-build:
17+
runs-on: macos-latest
18+
steps:
19+
- uses: actions/checkout@v4
20+
- run: brew install verilator
21+
- run: verilator --version
22+
- run: wget https://vcvrack.com/downloads/Rack-SDK-2.4.1-mac-x64.zip
23+
- run: unzip Rack-SDK*.zip && rm Rack-SDK*.zip
24+
- run: make RACK_DIR=`pwd`/Rack-SDK

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ VERILATED_OBJ=Vcore__ALL.a
1111
# FLAGS will be passed to both the C and C++ compiler
1212
FLAGS += -I$(VERILATOR_ROOT)/include -faligned-new
1313
CFLAGS +=
14-
CXXFLAGS +=
14+
C++FLAGS := $(filter-out -std=c++11,$(C++FLAGS))
1515

1616
# Careful about linking to shared libraries, since you can't assume much about the user's environment and library search path.
1717
# Static libraries are fine, but they should be added to this plugin's build system.

0 commit comments

Comments
 (0)