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

chore: remove individual example workspaces #1566

Merged
merged 3 commits into from
Oct 2, 2024
Merged

Conversation

xJonathanLEI
Copy link
Contributor

Currently, examples are not attached to the root workspace. This causes several issues:

  1. Examples are not built by default (in fact, multiple examples don't compile and had to be fixed for this PR).
  2. When built, examples do not share the target folder with the root workspace, duplicating work.

In addition, some examples use their own workspace (not even the ./examples/Cargo.toml workspace), causing even more duplication, where many examples build the exact same copy of intermediate crates.

This PR moves all examples to the root workspace, and adjusts CI workflows to the new project structure. The examples job has been deleted as examples are now already checked by other jobs, thanks to being in the root workspace.

Copy link

github-actions bot commented Sep 30, 2024

SP1 Performance Test Results

Branch: jon/examples_workspace
Commit: 45da9ce8
Author: xJonathanLEI

program cycles execute (mHz) core (kHZ) compress (KHz) time success
fibonacci 11291 0.18 5.46 0.16 1m12s
ssz-withdrawals 2757356 17.12 64.83 17.46 2m38s
tendermint 12593597 6.47 166.37 63.83 3m19s

@xJonathanLEI xJonathanLEI changed the title chore: include all examples in the root workspace chore: remove individual example workspaces Oct 1, 2024
@xJonathanLEI xJonathanLEI merged commit 62ff82c into dev Oct 2, 2024
23 checks passed
@xJonathanLEI xJonathanLEI deleted the jon/examples_workspace branch October 2, 2024 22:49
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