Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update CI to install forc and build sway examples #1322

Merged
merged 1 commit into from
Apr 20, 2022

Conversation

JoshuaBatty
Copy link
Member

@JoshuaBatty JoshuaBatty commented Apr 20, 2022

CI is currently failing for PR #1321. This is because the out directory isn't being built for the sway examples, leading to CI errors for:
cargo-build-workspace
cargo-clippy
cargo-test-lib-std
cargo-test-workspace
cargo-unused-deps-check

This PR now installs forc and builds all sway examples during each of these stages now.

Copy link
Contributor

@mitchmindtree mitchmindtree left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

I think this makes much more sense than committing out/debug/<proj>-abi.json files, as at least this way we can always make sure the ABI files for the examples are up-to-date.

It's annoying there isn't a simple way to re-use a sequence of steps without writing a whole github action. Maybe one day github will give us "function"s, or let jobs "branch" out to other jobs or something. Meanwhile this is probably fine.

I would be more worried about the cargo install of forc taking up more CI time, but the rust-cache should make this pretty negligible.

@JoshuaBatty JoshuaBatty merged commit b23b8d8 into master Apr 20, 2022
@JoshuaBatty JoshuaBatty deleted the josh/ci-examples branch April 20, 2022 06:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants