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

ci: Enable github CI for developers forks #21

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

rzr
Copy link
Contributor

@rzr rzr commented Nov 5, 2024

Enable to setup a reference system for building,
it can be used for various automation (eg: github actions)

Most of changes are isolated in this simple makefile
that more or less script what has been described in readme file

Signed-off-by: Philippe Coval <philippe.coval@silabs.com>
Just run the native helper script in docker,
it is not optimized for bandwidth but minimize duplication of changes.

Signed-off-by: Philippe Coval <philippe.coval@silabs.com>
Enable github actions that build any branches using docker along helper script.
To reduces the dependency on github and
avoid bringing more ambiguity or complexity
most tasks are isolated at lowerlevel (in helper for cmake).

More checks to come next, unit tests, lint etc.

Relate-to: https://github.com/rzr/wisun-br-linux/actions/runs/11687474586/job/32545660605
Signed-off-by: Philippe Coval <philippe.coval@silabs.com>
@jerome-pouiller
Copy link
Collaborator

Very nice! However, I wonder if it make sense to involve docker and a makefile for a such simple CI. I assume we could do the same with only .github/workflows/build.yml?

@rzr
Copy link
Contributor Author

rzr commented Nov 5, 2024

well it is developer preference,.

IHMO Depending on docker is not ideal, but supporting it is nice (again it can be a reference that can help troubleshooting), I think there are benefits to have minimal (like this one) docker file in tree, something nice for DX one can build directly with a oneliner:

docker build https://github.com/rzr/wisun-br-linux.git#phcoval/ci/review/main

Sending build context to Docker daemon  3.194MB
Step 1/10 : FROM debian:12
 ---> 617f2e89852e
(...)

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