Hi,
I am trying to generate release artifacts for my Haskell project as a part of CI using Github Actions.
I’d like the artifacts to have the version number in the file name, e.g.
<mypackage>-<version>.tar.gz
, and <mypackage>-<version>
(for the exe)
For sources release, cabal sdist
works well, it creates <mypackage>-<version>.tar.gz
.
However cabal install
does not append the version suffix to the target exe.
There is an option to manually specify the suffix using --program-suffix
, but I’d like the version of the package to be picked up from the cabal file automatically.
I’ve searched everywhere but have not been able to find a way to do this. It is a bit surprising that cabal sdist
is able to append the version suffix, but not so cabal install
Am I missing something?