Skip to content
This repository has been archived by the owner on Jan 11, 2024. It is now read-only.

Commit

Permalink
Check foundry is installed (#277)
Browse files Browse the repository at this point in the history
CHECK: Warn the user they need foundry installed
  • Loading branch information
aakoshh authored Nov 6, 2023
1 parent 1732921 commit 9c85f9d
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ OUTPUT ?= ./out
deploy-ipc:
./ops/deploy.sh $(NETWORK)

compile-abi:
compile-abi: | forge
./ops/compile-abi.sh $(OUTPUT)

rust-binding:
Expand All @@ -34,7 +34,7 @@ lint:
fmt:
npx prettier --check -w 'src/**/*.sol' 'test/*.sol'

build:
build: | forge
forge build

test:
Expand Down Expand Up @@ -70,12 +70,20 @@ clean:
rm -rf ./cache_hardhat
rm -rf ./typechain

coverage:
coverage: | forge
forge coverage --ffi --report lcov -C ./src
genhtml -o coverage_report lcov.info --branch-coverage
./tools/check_coverage.sh

prepare: fmt lint test slither

# Forge is used by the ipc-solidity-actors compilation steps.
.PHONY: forge
forge:
@if [ -z "$(shell which forge)" ]; then \
echo "Please install Foundry. See https://book.getfoundry.sh/getting-started/installation"; \
exit 1; \
fi

# ==============================================================================
.PHONY: deploy-ipc lint fmt check-subnet slither check-gateway test prepare storage build clean

0 comments on commit 9c85f9d

Please sign in to comment.