Guidescan versioning and release process #10
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This setup is very similar to what I've used in the past for other C++ projects when it comes to versioning and release, and I think may work well here. Of course suggestions are welcome!
The basic idea is:
As an example,
cmake .. -DGUIDESCAN_VERSION=v2.0.3
will burn thev2.0.3
in a header file, which is then reported byguidescan --version
A git tag (e.g.
v2.0.3
) that is pushed upstream, or an explicit release made on the GitHub page will trigger a CI workflow, which will:.tar.gz
for the binary distributions of Guidescan (for Linux and MacOS), which has theguidescan
binary (in abin/
folder) which reports the correct--version
, the headers (in aninclude/
folder), and the scripts in ascripts/
folder. Of course we can add more stuff in there if desired. I think a shared library for guidescan once it becomes available will be a good addition here..zip
and.tar.gz
files for source distributions of Guidescan. This is essentially a snapshot of the code when the release was made, in case users want to download and build a particularguidescan
version themselves.I was getting errors building
sdsl
on Windows so I haven't included windows in the build matrix here. If that's critical, we can perhaps tackle that as a separate issue.