Skip to content

Commit ae48b73

Browse files
committed
fix: cpp-low-level update
1 parent 4bcdc30 commit ae48b73

File tree

4 files changed

+15
-3
lines changed

4 files changed

+15
-3
lines changed

.github/workflows/build.yaml

+12-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,18 @@ jobs:
1313
runs-on: ubuntu-latest
1414
strategy:
1515
matrix:
16-
template: [cpp, go, javascript, lua, python, ruby, rust, typescript]
16+
template:
17+
[
18+
cpp,
19+
cpp-low-level,
20+
go,
21+
javascript,
22+
lua,
23+
python,
24+
ruby,
25+
rust,
26+
typescript,
27+
]
1728
steps:
1829
- name: Checkout
1930
uses: actions/checkout@v3

cpp-low-level/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ apt-get install -y --no-install-recommends \
1616
rm -rf /var/lib/apt/lists/*
1717
EOF
1818

19-
COPY --from=cartesi/sdk:0.6.2 /opt/riscv /opt/riscv
19+
COPY --from=cartesi/sdk:0.6.2 /include/linux/cartesi /include/linux/cartesi
2020
WORKDIR /opt/cartesi/dapp
2121
COPY . .
2222
RUN make

cpp-low-level/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ CXX := g++
33
.PHONY: clean
44

55
dapp: dapp.cpp
6-
$(CXX) -pthread -std=c++17 -I /opt/riscv/kernel/work/linux-headers/include -o $@ $^
6+
$(CXX) -pthread -std=c++17 -I /include -o $@ $^
77

88
clean:
99
@rm -rf dapp

cpp-low-level/dapp.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#include <fcntl.h>
1111
#include <sys/ioctl.h>
1212
#include <unistd.h>
13+
#include <stdbool.h>
1314

1415
// The rollup.h header file specifies how the userspace interacts with the Cartesi Rollup device
1516
// driver.

0 commit comments

Comments
 (0)