22
33BUILTIN_ACTORS_TAG ?= v11.0.0
44BUILTIN_ACTORS_BUNDLE := $(PWD ) /builtin-actors/output/bundle.car
5- BUILTIN_ACTORS_DIR := ../builtin-actors
5+ BUILTIN_ACTORS_DIR := ../../ builtin-actors
66
7- # Make sure this tag matches the one in Cargo.toml
8- IPC_ACTORS_TAG ?= origin/dev
9- IPC_ACTORS_DIR := $(PWD ) /../ipc-solidity-actors
10- IPC_ACTORS_CODE := $(shell find $(IPC_ACTORS_DIR ) -type f -name "* .sol")
11- IPC_ACTORS_ABI := .make/.ipc-actors-abi
7+ IPC_ACTORS_DIR := $(PWD ) /../contracts
128IPC_ACTORS_OUT := $(IPC_ACTORS_DIR ) /out
139
1410FENDERMINT_CODE := $(shell find . -type f \( -name "* .rs" -o -name "Cargo.toml" \) | grep -v target)
@@ -37,10 +33,10 @@ install:
3733 cargo install --locked --path fendermint/app
3834
3935# Using --release for testing because wasm can otherwise be slow.
40- test : $(IPC_ACTORS_ABI ) $( BUILTIN_ACTORS_BUNDLE ) $(BUILTIN_ACTORS_DIR )
36+ test : $(BUILTIN_ACTORS_BUNDLE ) $(BUILTIN_ACTORS_DIR )
4137 FM_BUILTIN_ACTORS_BUNDLE=$(BUILTIN_ACTORS_BUNDLE ) \
4238 FM_CONTRACTS_DIR=$(IPC_ACTORS_OUT ) \
43- cargo test --release --workspace --exclude smoke-test
39+ cargo test --release --package ' fendermint_* '
4440
4541e2e : docker-build $(BUILTIN_ACTORS_DIR )
4642 cd fendermint/testing/smoke-test && cargo make --profile $(PROFILE )
@@ -65,7 +61,7 @@ check-fmt:
6561check-clippy :
6662 cargo clippy --all --tests -- -D clippy::all
6763
68- docker-deps : $(BUILTIN_ACTORS_BUNDLE ) $(FENDERMINT_CODE ) $( IPC_ACTORS_ABI )
64+ docker-deps : $(BUILTIN_ACTORS_BUNDLE ) $(FENDERMINT_CODE )
6965 rm -rf docker/.artifacts
7066 mkdir -p docker/.artifacts/contracts
7167 cp -r $(IPC_ACTORS_OUT ) /* docker/.artifacts/contracts
@@ -109,24 +105,6 @@ $(BUILTIN_ACTORS_DIR):
109105 git clone https://github.com/filecoin-project/builtin-actors.git . && \
110106 git checkout $(BUILTIN_ACTORS_TAG )
111107
112-
113- # Compile the ABI artifacts of the IPC Solidity actors.
114- ipc-actors-abi : $(IPC_ACTORS_ABI )
115-
116- # Check out the IPC Solidity actors if necessary so we get the ABI artifacts, putting down a marker at the end.
117- $(IPC_ACTORS_ABI ) : $(IPC_ACTORS_CODE )
118- if [ ! -d $( IPC_ACTORS_DIR) ]; then \
119- mkdir -p $(IPC_ACTORS_DIR ) && \
120- cd $(IPC_ACTORS_DIR ) && \
121- git clone https://github.com/consensus-shipyard/ipc-solidity-actors.git . ; \
122- fi
123- cd $(IPC_ACTORS_DIR ) && \
124- git fetch origin && \
125- git checkout $(IPC_ACTORS_TAG )
126- @# The ABI are already checked in; otherwise we'd have to compile with foundry
127- @# make -C $(IPC_ACTORS_DIR) compile-abi
128- mkdir -p $(dir $@ ) && touch $@
129-
130108.PHONY : protoc
131109protoc :
132110 @if [ -z " $( shell which protoc) " ]; then \
0 commit comments