Skip to content
This repository was archived by the owner on Nov 4, 2024. It is now read-only.

Use stable toolchain as default for ink! related CI images#453

Merged
HCastano merged 8 commits intomasterfrom
hc-default-to-stable
Aug 26, 2022
Merged

Use stable toolchain as default for ink! related CI images#453
HCastano merged 8 commits intomasterfrom
hc-default-to-stable

Conversation

@HCastano
Copy link
Copy Markdown
Contributor

After use-ink/cargo-contract#698 we're able to build contracts
using the stable toolchain instead of nightly.

This updates our CI images to use stable as the default toolchain.

@HCastano HCastano requested review from athei and cmichi August 24, 2022 20:39
@athei
Copy link
Copy Markdown
Member

athei commented Aug 24, 2022

Won't this break the ink! CI? Building ink! itself (when not done by cargo contract) still needs nightly or RUSTC_BOOSTRAP=1.

@HCastano
Copy link
Copy Markdown
Contributor Author

You're right, I got too excited 😆 This change could still work but we'd need to manually set +nightly to the places where we build ink! for Wasm. Tomorrow problem though, haha (so don't merge pls)

@athei
Copy link
Copy Markdown
Member

athei commented Aug 25, 2022

This change could still work but we'd need to manually set +nightly to the places where we build ink! for Wasm.

I would say merge this but change the ink! CI to put RUSTC_BOOTSTRAP=1 into the environment. Cause we should build on stable in our CI when we expect the same thing from our users.

@HCastano
Copy link
Copy Markdown
Contributor Author

I would say merge this but change the ink! CI to put RUSTC_BOOTSTRAP=1 into the environment. Cause we should build on stable in our CI when we expect the same thing from our users.

Okay that makes sense. We can also use RUSTC_BOOTSTRAP=1 when doing our Clippy-Wasm checks which should save us some headaches 1. We will still need to use +nightly when running cargo fmt since we're using some config settings which they consider unstable.

Footnotes

  1. I've thought about this a bit and I'm not sure we want to do this, since contributors to ink! will have to use RUSTC_BOOTSTRAP=1 locally to check that Clippy passes. I'd prefer if they were told to use nightly instead.

This will let us build `ink!` crates for this target using
`RUSTC_BOOTSTRAP=1`.
@athei
Copy link
Copy Markdown
Member

athei commented Aug 26, 2022

You could still tell developers to use nightly for local development. But the CI should use stable cause that is what we are delivering to our users.

@HCastano HCastano merged commit 7fa56f6 into master Aug 26, 2022
@HCastano HCastano deleted the hc-default-to-stable branch August 26, 2022 18:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants