File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -15,17 +15,18 @@ RUN RUST_VERSION=$(grep 'channel = ' rust-toolchain.toml | \
15
15
rustup component add rustfmt
16
16
17
17
COPY . .
18
+
18
19
# Build with cache mount
19
20
RUN --mount=type=cache,target=/usr/local/cargo/registry \
20
21
--mount=type=cache,target=/openmina/target,id=rust-target \
21
- cargo build -- release --package=cli --bin=openmina && \
22
- cp -r /openmina/target/release /openmina/release-bin/
22
+ make build- release && \
23
+ cp /openmina/target/release/openmina /openmina/release-bin/openmina
23
24
24
25
RUN --mount=type=cache,target=/usr/local/cargo/registry \
25
26
--mount=type=cache,target=/openmina/target,id=rust-target \
26
- cargo build --release --features scenario-generators \
27
- --bin openmina-node-testing && \
28
- cp -r /openmina/target/release /openmina/testing-release-bin/
27
+ make build-testing && \
28
+ cp / openmina/target/release/openmina -node-testing \
29
+ /openmina/testing-release-bin/
29
30
30
31
# necessary for proof generation when running a block producer.
31
32
RUN git clone --depth 1 \
You can’t perform that action at this time.
0 commit comments