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

Automate C header generation #181

Merged
merged 5 commits into from
Dec 16, 2022

Conversation

wuehr1999
Copy link
Member

Fixes #179
Hi @aentinger
I automated the steps 1 - 3 of the C header generation using docker.
Also the definition of NUNAVUT_ASSERT is automated now.

wuehr1999 and others added 2 commits December 15, 2022 22:44
* update dockerfile

* fix workflow

* try regex

* disable assertion

* try other nunavut

* readme

* provide nunavut assert

* define nunavut assert

* define nunavut assert

* fix assertion definition

* fix assertion definition

* rename update script

* fix assertion
@aentinger aentinger changed the title Automate c header generation Automate C header generation Dec 16, 2022
@107-systems 107-systems deleted a comment from github-actions bot Dec 16, 2022
@aentinger
Copy link
Member

Good Morning @wuehr1999 ☕ 👋

This is f**king great! 🚀 🥳

I've only run into a small problem when trying this for myself:

/tmp/107-Arduino-Cyphal/extras/script$ git branch 
* automate-c-header-generation
  main

tmp/107-Arduino-Cyphal/extras/script$ ls
build_docker.sh  docker_codegen.sh  Dockerfile  update_c_header.sh

/tmp/107-Arduino-Cyphal/extras/script$ ./build_docker.sh
unable to prepare context: unable to evaluate symlinks in Dockerfile path: lstat /var/lib/snapd/void/Dockerfile: no such file or directory

According to a quick research this error commonly occurs when there's no Dockerfile in your path. This should not be the problem here I guess?

@wuehr1999
Copy link
Member Author

wuehr1999 commented Dec 16, 2022

Hi @aentinger,
how did You install docker?
I would try cloning the repository into Your home directory and starting the procedure from there.
The problem is described here.

Copy link
Member

@aentinger aentinger left a comment

Choose a reason for hiding this comment

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

Terrific work! 👍 Thank you @wuehr1999 🚀

@aentinger aentinger merged commit db0bc55 into 107-systems:main Dec 16, 2022
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.

[Feature Request] Encapsulate OpenCyphal DSDL C header generation script inside Docker container
2 participants