zsv
zsv copied to clipboard
Add version.h to store the released version
Currently, there's no version file in the codebase.
The version is extracted using git
command and used as a compile time macro VERSION
wherever needed.
Also, the CI workflow is being updated with the historical released version. See:
https://github.com/liquidaty/zsv/blob/dab4873f1731bb3ebbf847e61e5c4b2da365dd85/.github/workflows/ci.yml#L26
Instead of hardcoding the released version as TAG
in the CI, it is suggested to use a version.h
header file as the default place to store version information e.g. version, branch, date, etc.