actions
actions copied to clipboard
Update documentation to specify which GHCs are available correctly
According to the docs, we only go up to 9.2.2
, but according to this we already have 9.2.4
, and 9.2.3
's been around for two-ish months now.
The documentation states that the most recent GHC available is 9.2.2. However this is not the case. The documentation should be updated to be accurate.
Both 9.2.3 and 9.2.4 work with this action. The documentation is unfortunately out of date.
@tfausak Modified the issue.
Based on the haskell/actions/setup README, my understanding is that the documentation (correctly) states which versions are pre-installed. Other versions work if they are supported by GHCup, etc., but using them incurs additional cost, as the software has to be downloaded and installed on each job.
Personally, I limit my jobs to versions that are pre-installed because I appreciate the free service and try to minimize the cost. I am not sure if this is necessary, though, and I am eagerly waiting for GHC 9.2.4 installation. Perhaps new releases are not pre-installed because the cost of downloading and installing the compiler on each job is not large?
@TravisCardwell I admit I missed that initial part, but the heading 'Version Support' doesn't really indicate this very well.
The documentation should indeed be updated to better reflect what is available, in a way that prevents bitrot every couple of month.
Atm, the docs seem up-to-date.
Of course, it would be good to create the relevant section of the README
automatically from src/versions.json
.
PRs welcome!
@TravisCardwell wrote:
Based on the haskell/actions/setup README, my understanding is that the documentation (correctly) states which versions are pre-installed. Other versions work if they are supported by GHCup, etc., but using them incurs additional cost, as the software has to be downloaded and installed on each job.
Personally, I limit my jobs to versions that are pre-installed because I appreciate the free service and try to minimize the cost. I am not sure if this is necessary, though, and I am eagerly waiting for GHC 9.2.4 installation. Perhaps new releases are not pre-installed because the cost of downloading and installing the compiler on each job is not large?
Preinstalling versions of GHC is in the domain of the Github Action virtual environments. This action does not know which versions are preinstalled, but if you request a versions of GHC that happens to be pre-installed, it will be activated rather than re-installed.
You can request any precise GHC version (even those not mentioned in the README) and the action will try to install it. However, if you request an approximate GHC version such as 9.4, it will be resolved to the latest precise version the action is conscious about (atm 9.4.5).
Anyway, atm there is no pressing problem with this issue as the OP is fixed, so I am closing this issue as completed.