8 Commits

Author SHA1 Message Date
Jared Weakly
dfe236d133 Make updating tests on version bumps unnecessary 2020-04-30 11:36:10 -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
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-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
5e34fe46eb Cleanup: not using tempDir 2019-09-30 10:59:53 -07:00
Timothy Clem
11998570ec Use ghc/cabal where they are installed (no toolcache) 2019-09-30 10:01:13 -07:00
Timothy Clem
012ca92c8e Test failing to find cabal version 2019-09-23 20:42:44 -07:00
Timothy Clem
1068d0618d Initial project setup
Partly ported from actions/setup-ruby
2019-09-23 19:56:26 -07:00