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

Generate yaml file for reproducible builds #7

Open
RobTillaart opened this issue Jul 12, 2021 · 1 comment
Open

Generate yaml file for reproducible builds #7

RobTillaart opened this issue Jul 12, 2021 · 1 comment
Assignees
Labels
topic: code Related to content of the project itself type: enhancement Proposed improvement

Comments

@RobTillaart
Copy link

Question popped up - how to generate the yaml file for the reproducable build

The scenario I would like is the following

  • I write my sketch
  • include the libraries (version) for my sketch
  • build / test / fix cycle
  • arduino-cli compile [sketch] --appendProfile myproject.yaml
  • then I switch boards
  • arduino-cli compile [sketch] --appendProfile myproject.yaml

--appendProfile will create a new file when it does not exist
--appendProfile will append to an existing file when file exists

I might not be possible to create 100% of the file but a 'starter' is appreciated

@cmaglie
Copy link
Member

cmaglie commented Jul 13, 2021

I guess you mean something like:

arduino-cli compile [sketch] --create-profile PROFILE_ID

that will append a stub profile called PROFILE_ID:.... inside profiles.yaml (or create the file from scratch if it doesn't exists).

At the moment in the Profiles RFC specification, we do not allow multiple yaml files, but all the profiles must be inside a file named sketch/profiles.yaml. And I like to keep it like that :-).

There is an intense internal discussion about how the arduino-cli "profiles UX" should be, we had many proposals (one very similar to your) but we still did not reach an agreement, my feeling is that we will end up trying some prototypes to figure out pro and cons of each proposal. For that reason, we decided to push for releasing the "profiles" specification first without the UX, so users can start using this feature "manually", while we figure out the UX later.

@per1234 per1234 added topic: code Related to content of the project itself type: enhancement Proposed improvement labels Feb 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself type: enhancement Proposed improvement
Projects
None yet
Development

No branches or pull requests

5 participants