chipsalliance / yosys-f4pga-plugins

Plugins for Yosys developed as part of the F4PGA project.
https://f4pga.org
Apache License 2.0
80 stars 46 forks source link

Create regular tags/releases ? #489

Closed hzeller closed 1 year ago

hzeller commented 1 year ago

For people packaging, it is useful to refer to a tag or release, as referring to a commit makes it harder to see the rough relative release date.

Currently, the last tag is from almost 3 years ago: https://github.com/chipsalliance/yosys-f4pga-plugins/tags

I suggest to make the tagging not a manual git tag process, but something driven my the source version, similar how we do it in UHDM and Surelog, in which the version number is mentioned in the CMakeLists.txt and the tag is then auto-generated in the CI if it changed.

In our case, this would be a variable in the toplevel Makefile which then is compiled into #define into every module, so that it is is possible to ask the module about their version.

Then, the tagging itself will be automatic, e.g. similar how we do it in UHDM

hzeller commented 1 year ago

Fixed. To get a new release, changing the PLUGIN_VERSION is sufficient, the tag will then be automatically applied by the CI after submit and merge.