Unverified Commit bb39fe15 authored by Michael Müller's avatar Michael Müller Committed by GitHub
Browse files

[CI] Use `cargo-contract` from container (#584)

* Use `cargo-contract` from container

* Remove generate-metadata command
parent 3a9301fb
Pipeline #114269 canceled with stages
in 5 minutes and 27 seconds
......@@ -193,13 +193,6 @@ fmt:
#### stage: examples
.update-cargo-contract: &update-cargo-contract
# `cargo install` returns an error if there is nothing to update, so have to suppress it here temporarily
# restore this once ink! 3.0 is published and the new version of cargo-contract has been released to crates.io
# - cargo install cargo-contract || echo $?
- cargo install --git https://github.com/paritytech/cargo-contract --tag ink-ci || echo $?
- cargo contract -V
examples-test:
stage: examples
<<: *docker-env
......@@ -242,27 +235,13 @@ examples-contract-build:
stage: examples
<<: *docker-env
script:
- *update-cargo-contract
- cargo contract -V
- for example in examples/*/; do
pushd $example &&
cargo contract build &&
popd;
done
examples-generate-metadata:
stage: examples
<<: *docker-env
needs:
- job: build-wasm
artifacts: false
script:
- *update-cargo-contract
- for example in examples/*/; do
pushd $example &&
cargo contract generate-metadata &&
popd;
done
#### stage: publish
publish-docs:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment