Skip to content

Commit

Permalink
chore: refactor build and tests pipeline
Browse files Browse the repository at this point in the history
* introduce `just` and rewrite makefiles into justfiles
* unify all cargo workspaces into a single cargo workspace;
* unify all Dockerfiles into a single Dockerfile;
* implement anvil deployments as state dumps and loads;
* Change PRT time from timestamp to block number;
* refactor `echo` program build;
* implement node state directory configuration.
  • Loading branch information
GCdePaula committed Jan 7, 2025
1 parent e3e151f commit 114708d
Show file tree
Hide file tree
Showing 70 changed files with 2,149 additions and 4,702 deletions.
86 changes: 80 additions & 6 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,80 @@
.vscode
/**/target/
/**/snapshots/
Cargo.lock
/**/compute_data/
/**/rollups_data/
**/.git
**/.github
**/.venv
**/.vscode
**/.DS_Store

**/target/

**/_state/
**/snapshots/
**/compute_data/
**/rollups_data/

**/out/
**/cache/

test/programs/linux.bin
test/programs/rootfs.ext2
test/programs/**/machine-image/
test/programs/**/addresses
test/programs/**/anvil_state.json
test/programs/**/_anvil.log

cartesi-rollups/contracts/bindings-rs/src/contract/
prt/contracts/bindings-rs/src/contract/

prt/tests/compute/outputs/
prt/tests/compute/pixels/

machine/emulator/**/*.o
machine/emulator/**/*.swp
machine/emulator/**/*.d
machine/emulator/**/*.pb.cc
machine/emulator/**/*.pb.h
machine/emulator/**/*.gcno
machine/emulator/**/*.so
machine/emulator/**/*.dtb
machine/emulator/**/*.bin
machine/emulator/**/*.md
machine/emulator/**/*.deb

machine/emulator/src/*.pb.h
machine/emulator/src/*.pb.cc
machine/emulator/src/*.ext2
machine/emulator/src/*.bin
machine/emulator/src/*.gcno
machine/emulator/src/*.gcov
machine/emulator/src/*.gcda
machine/emulator/src/*.profraw
machine/emulator/src/compile_flags.txt
machine/emulator/src/coverage*
machine/emulator/src/jsonrpc-discover.cpp
machine/emulator/src/machine-c-version.h

machine/emulator/build
machine/emulator/third-party/downloads
machine/emulator/src/cartesi-machine-client
machine/emulator/src/cartesi-machine-server
machine/emulator/src/cartesi-machine-hash
machine/emulator/doc/

machine/emulator/**/*.clang-tidy
machine/emulator/**/*.a
machine/emulator/**/*.lib
machine/emulator/**/*.wasm
machine/emulator/**/*.tar.gz
machine/emulator/**/*.raw
machine/emulator/**/*.so
machine/emulator/**/*.dll
machine/emulator/**/*.exe
machine/emulator/**/*.dylib
machine/emulator/**/*.dtb
machine/emulator/**/*.tmp
machine/emulator/**/*.ld
machine/emulator/**/*.elf
machine/emulator/**/*.bin

machine/emulator/uarch/uarch-pristine-hash.c
machine/emulator/uarch/uarch-pristine-ram.c
machine/emulator/uarch/compute-uarch-pristine-hash
File renamed without changes
10 changes: 2 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,16 +1,10 @@
.bin
.env
.vscode
.DS_Store
**/.DS_Store
**/.idea/
target/
snapshots/
common-rs/Cargo.lock
prt/client-rs/Cargo.lock
prt/tests/compute/outputs/
prt/tests/compute/pixels/
node_modules
**/contract-bindings/src/contract
**/contract-bindings/Cargo.lock
**/snapshots/
**/compute_data/
**/rollups_data/
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
Gabriel Coutinho de Paula <[email protected]>
Guilherme Dantas <[email protected]>
Stephen Chen <[email protected]>
Loading

0 comments on commit 114708d

Please sign in to comment.