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

Standalone Example Infrastructure #6858

Merged
merged 3 commits into from
Jan 20, 2025

Conversation

cwfitzgerald
Copy link
Member

@cwfitzgerald cwfitzgerald commented Jan 5, 2025

This gives us a fully standalone hello-compute example and sets up the infrastructure for having more completely standalone examples.

As part of the move, I separated all the existing examples into a separate file. This PR should be reviewed commit by commit, as the first two commits are bookkeeping and removals and the last commit is the new rewritten standalone compute job.

In order to ensure that the extracted examples remain compilable, adds a CI job that uses cargo-generate to extract the example, then compiles it. This does not ensure that it runs as we'd need infrastructure for that which we don't want to include in the example.

@cwfitzgerald cwfitzgerald force-pushed the cw/standalone-examples branch 4 times, most recently from 70a3cb6 to e82b409 Compare January 20, 2025 05:17
@cwfitzgerald cwfitzgerald marked this pull request as ready for review January 20, 2025 05:19
@cwfitzgerald cwfitzgerald requested a review from a team as a code owner January 20, 2025 05:19
Copy link
Contributor

@nical nical left a comment

Choose a reason for hiding this comment

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

Nice. There's just one line that needs to be fixed.

CHANGELOG.md Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
@cwfitzgerald cwfitzgerald enabled auto-merge (squash) January 20, 2025 19:04
@cwfitzgerald cwfitzgerald disabled auto-merge January 20, 2025 19:24
@cwfitzgerald
Copy link
Member Author

There's actually an issue with this anyway, breaking changes wont' compile in the cargo-generate job. Let me fix this

@cwfitzgerald cwfitzgerald force-pushed the cw/standalone-examples branch 2 times, most recently from 23364fb to b816249 Compare January 20, 2025 22:36
@aloucks
Copy link
Contributor

aloucks commented Jan 20, 2025

You might consider a naming convention that will sort nicely and allow for more than nine sorted examples. e.g. 01_hello_compute or 001_hello_compute

@cwfitzgerald cwfitzgerald force-pushed the cw/standalone-examples branch from b816249 to 798f2f6 Compare January 20, 2025 22:47
@cwfitzgerald cwfitzgerald enabled auto-merge (rebase) January 20, 2025 22:48
@cwfitzgerald cwfitzgerald disabled auto-merge January 20, 2025 22:48
@cwfitzgerald
Copy link
Member Author

cwfitzgerald commented Jan 20, 2025

Current plan was like 3 standalone examples, but chucking a 0 on there wouldn't hurt, we definnitely won't hit 99. Thanks @aloucks

@cwfitzgerald cwfitzgerald force-pushed the cw/standalone-examples branch from 798f2f6 to 67e56ab Compare January 20, 2025 22:50
Fix Generate

Fix?

17th Time's The Charm

Fix Build

See Eye

Docs

Victory Tabular

Formatting

Formating3
@cwfitzgerald cwfitzgerald force-pushed the cw/standalone-examples branch from 67e56ab to 3aa4871 Compare January 20, 2025 22:54
@cwfitzgerald cwfitzgerald merged commit 7fccb6b into gfx-rs:trunk Jan 20, 2025
31 checks passed
@cwfitzgerald cwfitzgerald deleted the cw/standalone-examples branch January 21, 2025 00:24
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.

3 participants