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

Add CI jobs #14

Merged
merged 2 commits into from
Jan 21, 2024
Merged

Add CI jobs #14

merged 2 commits into from
Jan 21, 2024

Conversation

Nashtare
Copy link
Contributor

I noticed we didn't have a CI running on this repo.
I added basic jobs:

  • cargo check for both plonky_block_proof_gen and proof_decoder
  • cargo test for the workspace
  • rustfmt and clippy (the latter required silencing some lints because of proof_decoder, I added a TODO to address them in the future)

Comment on lines +40 to +44
env:
RUSTFLAGS: -Copt-level=3 -Cdebug-assertions -Coverflow-checks=y -Cdebuginfo=0
RUST_LOG: 1
CARGO_INCREMENTAL: 1
RUST_BACKTRACE: 1
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not super familiar with GitHub's CI, but I wonder if there's a nice way to avoid duplicating the env variables for these tasks? I know we could define env one "layer" above and it would be present for all of the tasks, but then it means these variables would be defined for tasks which do not need them. Not obvious what to do here after looking this up myself, but yeah. Fine to leave this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll have to admit I'm not an expert in setting CI jobs, I basically got inspiration from the latest plonky2 (got refactored yesterday).

Comment on lines +4 to +7
// TODO: address these lints
#![allow(unused)]
#![allow(clippy::type_complexity)]
#![allow(private_interfaces)]
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm good with these for now, but yeah, I can probably clean these up in like an hour.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Haha no rush, I can take care of them as well 🙂

@Nashtare Nashtare merged commit c429182 into 0xPolygonZero:main Jan 21, 2024
@Nashtare Nashtare deleted the ci branch January 21, 2024 21:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants