check for the right contracts file at each build step
i dont know why build caches are breaking this
This commit is contained in:
parent
ac77b691df
commit
3d90768dd8
|
@ -70,7 +70,7 @@ RUN --mount=type=bind,target=.,rw \
|
||||||
--mount=type=cache,target=/app/target \
|
--mount=type=cache,target=/app/target \
|
||||||
set -eux; \
|
set -eux; \
|
||||||
\
|
\
|
||||||
[ -e "payment-contracts/src/contracts.rs" ] || touch payment-contracts/build.rs ; \
|
[ -e "./payment-contracts/src/contracts/mod.rs" ] || touch ./payment-contracts/build.rs; \
|
||||||
cargo --locked --verbose fetch
|
cargo --locked --verbose fetch
|
||||||
|
|
||||||
# build tests (done its in own FROM so that it can run in parallel)
|
# build tests (done its in own FROM so that it can run in parallel)
|
||||||
|
@ -86,6 +86,7 @@ RUN --mount=type=bind,target=.,rw \
|
||||||
--mount=type=cache,target=/app/target \
|
--mount=type=cache,target=/app/target \
|
||||||
set -eux; \
|
set -eux; \
|
||||||
\
|
\
|
||||||
|
[ -e "./payment-contracts/src/contracts/mod.rs" ] || touch ./payment-contracts/build.rs; \
|
||||||
RUST_LOG=web3_proxy=trace,info \
|
RUST_LOG=web3_proxy=trace,info \
|
||||||
cargo \
|
cargo \
|
||||||
--frozen \
|
--frozen \
|
||||||
|
@ -107,6 +108,7 @@ RUN --mount=type=bind,target=.,rw \
|
||||||
--mount=type=cache,target=/app/target \
|
--mount=type=cache,target=/app/target \
|
||||||
set -eux; \
|
set -eux; \
|
||||||
\
|
\
|
||||||
|
[ -e "./payment-contracts/src/contracts/mod.rs" ] || touch ./payment-contracts/build.rs; \
|
||||||
cargo install \
|
cargo install \
|
||||||
--features "$WEB3_PROXY_FEATURES" \
|
--features "$WEB3_PROXY_FEATURES" \
|
||||||
--frozen \
|
--frozen \
|
||||||
|
|
Loading…
Reference in New Issue