@@ -17,6 +17,9 @@ dockerfiles/ink-ci-linux/README.md" \
17
17
io.parity.image.revision="${VCS_REF}" \
18
18
io.parity.image.created="${BUILD_DATE}"
19
19
20
+ WORKDIR /builds
21
+ ENV SHELL /bin/bash
22
+
20
23
RUN set -eux; \
21
24
# The supported Rust nightly version must support the following components
22
25
# to allow for a functioning CI pipeline:
@@ -35,12 +38,18 @@ RUN set -eux; \
35
38
# Installs the latest common nightly for the listed components,
36
39
# adds those components, wasm target and sets the profile to minimal
37
40
rustup toolchain install nightly --target wasm32-unknown-unknown \
38
- --profile minimal --component rustfmt clippy miri rust-src; \
41
+ --profile minimal --component rustfmt clippy miri rust-src; \
39
42
rustup default nightly; \
40
43
# We require `xargo` so that `miri` runs properly
41
44
# We require `grcov` for coverage reporting and `rust-covfix` to improve it.
42
- cargo install grcov rust-covfix cargo-contract xargo; \
45
+ cargo install grcov rust-covfix xargo; \
46
+ # download the cargo-contracts binary tagged v0.8-ink-ci
47
+ curl -L "https://gitlab.parity.io/parity/cargo-contract/-/jobs/artifacts/v0.8-ink-ci/raw/artifacts/cargo-contract/cargo-contract?job=build" \
48
+ -o /usr/local/cargo/bin/cargo-contract; \
49
+ chmod +x /usr/local/cargo/bin/cargo-contract; \
50
+ # versions
43
51
rustup show; \
44
52
cargo --version; \
53
+ cargo-contract --version; \
45
54
# Clean up and remove compilation artifacts that a cargo install creates (>250M).
46
55
rm -rf "${CARGO_HOME}/registry" "${CARGO_HOME}/git" /root/.cache/sccache;
0 commit comments