Skip to content

Commit

Permalink
fix(release): the resolver = 2 feature is a nightly feature causing t…
Browse files Browse the repository at this point in the history
…he release builds to fail as we use stable
  • Loading branch information
chefsale committed May 27, 2021
1 parent 4009a14 commit 1dd1331
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
[workspace]
resolver = "2"
members = [
"core/chain-configs",
"core/crypto",
Expand Down
6 changes: 1 addition & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,13 @@ COPY . .
ENV CARGO_TARGET_DIR=/tmp/target
ENV RUSTC_FLAGS='-C target-cpu=x86-64'
ENV PORTABLE=ON
RUN --mount=type=cache,target=/tmp/target \
--mount=type=cache,target=/usr/local/cargo/git \
--mount=type=cache,target=/usr/local/cargo/registry \
cargo +"$(cat /tmp/rust-toolchain)" build -p neard --release && \
RUN cargo +"$(cat /tmp/rust-toolchain)" build -p neard --release && \
mkdir /tmp/build && \
cd /tmp/target/release && \
mv ./neard /tmp/build

COPY scripts/run_docker.sh /tmp/build/run.sh


# Actual image
FROM ubuntu:18.04

Expand Down
5 changes: 1 addition & 4 deletions Dockerfile.nightly
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,7 @@ COPY . .
ENV CARGO_TARGET_DIR=/tmp/target
ENV RUSTC_FLAGS='-C target-cpu=x86-64'
ENV PORTABLE=ON
RUN --mount=type=cache,target=/tmp/target \
--mount=type=cache,target=/usr/local/cargo/git \
--mount=type=cache,target=/usr/local/cargo/registry \
cargo +"$(cat /tmp/rust-toolchain)" build -p neard --release --features nightly_protocol --features nightly_protocol_features && \
RUN cargo +"$(cat /tmp/rust-toolchain)" build -p neard --release --features nightly_protocol --features nightly_protocol_features && \
mkdir /tmp/build && \
cd /tmp/target/release && \
mv ./neard /tmp/build
Expand Down

0 comments on commit 1dd1331

Please # to comment.