|
| 1 | +# Build Testapp CLI |
| 2 | +[group('build')] |
| 3 | +build: |
| 4 | + @echo "--> Building Testapp CLI" |
| 5 | + @mkdir -p {{ build_dir }} |
| 6 | + @cd apps/testapp && go build -ldflags "{{ ldflags }}" -o {{ build_dir }}/testapp . |
| 7 | + @echo "--> Testapp CLI Built!" |
| 8 | + @echo " Check the version with: build/testapp version" |
| 9 | + @echo " Check the binary with: {{ build_dir }}/testapp" |
| 10 | + |
| 11 | +# Install Testapp CLI to Go bin directory |
| 12 | +[group('build')] |
| 13 | +install: |
| 14 | + @echo "--> Installing Testapp CLI" |
| 15 | + @cd apps/testapp && go install -ldflags "{{ ldflags }}" . |
| 16 | + @echo "--> Testapp CLI Installed!" |
| 17 | + @echo " Check the version with: testapp version" |
| 18 | + @echo " Check the binary with: which testapp" |
| 19 | + |
| 20 | +# Build all ev-node binaries |
| 21 | +[group('build')] |
| 22 | +build-all: |
| 23 | + @echo "--> Building all ev-node binaries" |
| 24 | + @mkdir -p {{ build_dir }} |
| 25 | + @echo "--> Building testapp" |
| 26 | + @cd apps/testapp && go build -ldflags "{{ ldflags }}" -o {{ build_dir }}/testapp . |
| 27 | + @echo "--> Building evm" |
| 28 | + @cd apps/evm && go build -ldflags "{{ ldflags }}" -o {{ build_dir }}/evm . |
| 29 | + @echo "--> Building local-da" |
| 30 | + @cd tools/local-da && go build -ldflags "{{ ldflags }}" -o {{ build_dir }}/local-da . |
| 31 | + @echo "--> All ev-node binaries built!" |
| 32 | + |
| 33 | +# Build Testapp Bench |
| 34 | +[group('build')] |
| 35 | +build-testapp-bench: |
| 36 | + @echo "--> Building Testapp Bench" |
| 37 | + @mkdir -p {{ build_dir }} |
| 38 | + @cd apps/testapp && go build -ldflags "{{ ldflags }}" -o {{ build_dir }}/testapp-bench ./kv/bench |
| 39 | + @echo " Check the binary with: {{ build_dir }}/testapp-bench" |
| 40 | + |
| 41 | +# Build EVM binary |
| 42 | +[group('build')] |
| 43 | +build-evm: |
| 44 | + @echo "--> Building EVM" |
| 45 | + @mkdir -p {{ build_dir }} |
| 46 | + @cd apps/evm && go build -ldflags "{{ ldflags }}" -o {{ build_dir }}/evm . |
| 47 | + @echo " Check the binary with: {{ build_dir }}/evm" |
| 48 | + |
| 49 | +# Build local-da binary |
| 50 | +[group('build')] |
| 51 | +build-da: |
| 52 | + @echo "--> Building local-da" |
| 53 | + @mkdir -p {{ build_dir }} |
| 54 | + @cd tools/local-da && go build -ldflags "{{ ldflags }}" -o {{ build_dir }}/local-da . |
| 55 | + @echo " Check the binary with: {{ build_dir }}/local-da" |
| 56 | + |
| 57 | +# Build Docker image for local testing |
| 58 | +[group('build')] |
| 59 | +docker-build: |
| 60 | + @echo "--> Building Docker image for local testing" |
| 61 | + @docker build -t evstack:local-dev -f apps/testapp/Dockerfile . |
| 62 | + @echo "--> Docker image built: evstack:local-dev" |
| 63 | + @echo "--> Checking if image exists locally..." |
| 64 | + @docker images evstack:local-dev |
| 65 | + |
| 66 | +# Clean build artifacts |
| 67 | +[group('build')] |
| 68 | +clean: |
| 69 | + @echo "--> Cleaning build directory" |
| 70 | + @rm -rf {{ build_dir }} |
| 71 | + @echo "--> Build directory cleaned!" |
0 commit comments