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

Extract project version #104

Open
LecrisUT opened this issue Feb 14, 2023 · 2 comments
Open

Extract project version #104

LecrisUT opened this issue Feb 14, 2023 · 2 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@LecrisUT
Copy link

Would be useful to automatically extract and store the project version to a variable. This should be done via FileApi to ensure that it is set even if it is dynamically defined outside project().

Usage I think it is obvious in that it is for uploading tags and github releases.

@lukka
Copy link
Owner

lukka commented Feb 15, 2023

@LecrisUT thanks for the suggestion! Are you willing to create a PR for adding the feature?
Some thoughts:

  • this may be a specific action that could be accomplishing this task, but also a nice to have feature in run-cmake.
  • are there bindings to use the FileApi from TypeScript/JavaScript?

@lukka lukka added enhancement New feature or request help wanted Extra attention is needed labels Feb 15, 2023
@LecrisUT
Copy link
Author

Fileapi here refers to cmake-file-api. It basically imvolves running cmake configuration with a specific json file. That's why it would make sense to have it here, to consolidate the multiple cmake configuration runs into 1.

Unfortunately I don't have experience in writing github actions and I couldn't deduce my way out of the current implementation, so probably I can't make a PR for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants