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

github: add a multiplatform hello world workflow #64802

Merged

Conversation

fabiobaltieri
Copy link
Member

@fabiobaltieri fabiobaltieri commented Nov 3, 2023

Add a new workflow to build the hello world sample application on all three supported platforms using the reusable setup action.

@fabiobaltieri
Copy link
Member Author

This is now using zephyrproject-rtos/action-zephyr-setup@main, currently set up to run on push and changes in scripts/build/. May make sense to include cmake/ as well? Undecided, guess we can always expand later.

Copy link
Member

@gmarull gmarull left a comment

Choose a reason for hiding this comment

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

isn't it enough to test this on example-app?

@kartben
Copy link
Collaborator

kartben commented Jan 12, 2024

isn't it enough to test this on example-app?

I think it's fair to test in CI that we actually have a somewhat functional Hello World on all our supported dev environment, as right now we don't really have anything that really tests the macOS "getting started like" experience, for example.

@fabiobaltieri
Copy link
Member Author

isn't it enough to test this on example-app?

I was thinking at hello-world as the practical example one can use to set up their project CI, and this one would hopefully catch regression before they hit the example application (it runs in the PR if the right files are touched).

@kartben
Copy link
Collaborator

kartben commented Jan 12, 2024

it runs in the PR if the right files are touched).

Oh right, I missed that -- didn't we say we'd probably want to run it on every PR? Or if not, then the paths might be incomplete, no? What if requirements.txt gets updated and Python env setup has a regression on macOS? (which I think is actually the kind of situation that originally triggered this work)?

@fabiobaltieri
Copy link
Member Author

didn't we say we'd probably want to run it on every PR?

I think we meant: every PR merged (the push event). GitHub public runners are free for public projects but only up to a certain capacity, I think like 20 concurrent instances or something. I think that running for every PR would get us way over that, but fair point it certainly make sense to include requirements in the pull_request trigger, let me update that.

Copy link
Member

@stephanosio stephanosio left a comment

Choose a reason for hiding this comment

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

It still looks like nothing is being built on macOS and Windows runs.

.github/workflows/hello_world_multiplatform.yaml Outdated Show resolved Hide resolved
@fabiobaltieri
Copy link
Member Author

Tagged and updated to uses: zephyrproject-rtos/action-zephyr-setup@v1

Add a new workflow to build the hello world sample application on all
three supported platforms using the reusable setup action.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
@dleach02 dleach02 merged commit f65f6e5 into zephyrproject-rtos:main Jan 29, 2024
15 checks passed
@fabiobaltieri fabiobaltieri deleted the ci-hello-world-multi branch January 29, 2024 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants