10 Commits

Author SHA1 Message Date
Jared Weakly
9bd8f8d45b Version ghcup (#3)
* Version ghcup

* Don't cache something that needs to be tested for correctness
2020-04-27 17:22:46 -07:00
Jared Weakly
120f5dc3eb Implement fallback install and outputs (#2)
* Add better version support. Restructure code. Implement OS agnostic fallback

* Support latest for cabal and stack. Add enable-stack option.

* Add outputs

* Update documentation. Change default for GHC to latest.
2020-04-24 11:53:29 -07:00
Jared Weakly
aedd2c8f4c Merge remote-tracking branch 'upstream/master' 2020-03-30 09:39:23 -07:00
Timothy Clem
b7b0d7dce2 Use node 12 and specific releases of these actions 2020-03-30 08:38:46 -07:00
Timothy Clem
3108ab5594 Build on push and pr 2020-03-30 08:38:27 -07:00
Jared Weakly
28eaec6120 Verify Cabal functionality for various installs
This patch adds functionality to

* Test cabal build and cabal run in the CI workflow
* Test GHC 7.10.3 on Linux and ensures that it works
* On Linux, try hvr's PPA before ghcup
2020-03-30 08:24:21 -07:00
Jared Weakly
d3ac0a8114 Fix path construction error in windows 2020-03-27 17:56:26 -07:00
jared-w
8154472447 Add Windows and macOS Support (#1)
* Re-base onto upstream master

* Use os over operating-system per json schema suggestion

* Upgrade dependencies

* Update action.yml syntax

* Restructure repo on latest typescript-action

* Update workflow.yml to use same node version as action.yml

* Pull in improvements from open PRs. Fix package.json scripts

* Type function return arguments

* Don't eslint automatic formatting changes

* Initial implementation of ghc+cabal install for linux/mac/windows

* Update README

* Fix cabal version in action.yml

* Implement initial simplistic test suite

* Test action with CI

* Use chocolatey directly to install ghc and cabal

* Try pre-installed tool on linux first

* Clean up documentation

* Expand README

* Test super old GHC on ubuntu

* Implement support for stack

* Update documentation about Stack support

* Test stack install in Github Actions CI

authored-by: Jared Weakly <jweakly@galois.com>
2020-03-23 11:24:06 -07:00
Timothy Clem
bd5f9aae0d Use node-version per lint warning 2020-03-13 09:22:19 -07:00
Timothy Clem
907eb9b682 Bring over main workflow 2019-09-23 20:00:01 -07:00