Skip to content

Commit

Permalink
fix: cpp-low-level update
Browse files Browse the repository at this point in the history
  • Loading branch information
tuler committed Jul 25, 2024
1 parent 4bcdc30 commit ae48b73
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
13 changes: 12 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,18 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
template: [cpp, go, javascript, lua, python, ruby, rust, typescript]
template:
[
cpp,
cpp-low-level,
go,
javascript,
lua,
python,
ruby,
rust,
typescript,
]
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion cpp-low-level/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ apt-get install -y --no-install-recommends \
rm -rf /var/lib/apt/lists/*
EOF

COPY --from=cartesi/sdk:0.6.2 /opt/riscv /opt/riscv
COPY --from=cartesi/sdk:0.6.2 /include/linux/cartesi /include/linux/cartesi
WORKDIR /opt/cartesi/dapp
COPY . .
RUN make
Expand Down
2 changes: 1 addition & 1 deletion cpp-low-level/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ CXX := g++
.PHONY: clean

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

clean:
@rm -rf dapp
1 change: 1 addition & 0 deletions cpp-low-level/dapp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include <fcntl.h>
#include <sys/ioctl.h>
#include <unistd.h>
#include <stdbool.h>

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

0 comments on commit ae48b73

Please sign in to comment.