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

add cli #89

Merged
merged 8 commits into from
Jan 18, 2024
Merged

add cli #89

merged 8 commits into from
Jan 18, 2024

Conversation

AtomicFS
Copy link
Collaborator

@AtomicFS AtomicFS commented Jan 3, 2024

Move away from using GitHub actions to use JSON configuration file instead. This allows to use the firmware-action the exact same way in local system just like in CI/CD pipeline with the same input (JSON config file).

Fixes issue #88 , but is still missing recursive build of dependencies.

@AtomicFS AtomicFS added feature New feature or request github actions labels Jan 3, 2024
@AtomicFS AtomicFS added this to the Refactor the Go action milestone Jan 3, 2024
@AtomicFS AtomicFS requested a review from MDr164 January 4, 2024 00:02
- rework the entire structure of passing data along
- instead of passing githubaction.Action, pass config structures
- add support for parsing JSON file
- add support for usign JSON as configuration file
- use go-playground/validator to validate JSON config
@AtomicFS AtomicFS force-pushed the feat/cli branch 5 times, most recently from c703e37 to c416d83 Compare January 4, 2024 01:05
@AtomicFS
Copy link
Collaborator Author

AtomicFS commented Jan 4, 2024

Found a few bugs upon making a pull request, but they all should be fixed by now. Consider it review ready.

Test with edk2 complains about something during the build, but I am not sure what is the problem - probably wrong path?

 : error 0010: File name case mismatch
	UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.inf
	/workdir/UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.inf [in file system]
- Failed -

@AtomicFS
Copy link
Collaborator Author

AtomicFS commented Jan 4, 2024

FYI, the problem with edk2 was somehow fixed ...

@AtomicFS AtomicFS enabled auto-merge January 8, 2024 16:04
Copy link
Collaborator

@MDr164 MDr164 left a comment

Choose a reason for hiding this comment

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

I didn't find anything incorrect or some common pitfalls, good job at adding so many tests as well! All in all looks good to go. I hope I didn't miss anything in that large PR.

action/recipes/config_test.go Show resolved Hide resolved
@AtomicFS AtomicFS added this pull request to the merge queue Jan 18, 2024
Merged via the queue into main with commit 4f9288f Jan 18, 2024
25 checks passed
@AtomicFS AtomicFS deleted the feat/cli branch January 18, 2024 14:52
@AtomicFS AtomicFS added github_actions Pull requests that update GitHub Actions code and removed github actions labels Feb 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request github_actions Pull requests that update GitHub Actions code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants