Skip to content

Commit

Permalink
Split copying from building for debugging purposes
Browse files Browse the repository at this point in the history
  • Loading branch information
jpcenteno committed Oct 11, 2023
1 parent d371d21 commit 7cfcb9b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,8 @@ jobs:
- name: "Setup requirements"
run: make setup

- name: copy-precompiles
run: make copy-precompiles && ls -1 submodules/era-test-node/etc/system-contracts/contracts/precompiles

- name: "Build precompiles"
run: make build-precompiles
10 changes: 6 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@ setup:
update:
git submodule update

.PHONY: copy-precompiles
copy-precompiles:
cp -r precompiles/ submodules/era-test-node/etc/system-contracts/contracts/precompiles

.PHONY: build-precompiles
build-precompiles:
cp -r precompiles/ submodules/era-test-node/etc/system-contracts/contracts/precompiles && \
cd submodules/era-test-node && \
make build-precompiles
build-precompiles: copy-precompiles
cd submodules/era-test-node && make build-precompiles

run: build-precompiles
cd submodules/era-test-node && cargo run -- --show-calls=all --resolve-hashes run
Expand Down

0 comments on commit 7cfcb9b

Please sign in to comment.