zsv icon indicating copy to clipboard operation
zsv copied to clipboard

Add version.h to store the released version

Open iamazeem opened this issue 1 year ago • 4 comments

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.

iamazeem avatar Dec 05 '22 13:12 iamazeem