Commit Graph

12 Commits

Author SHA1 Message Date
Luke Lau
c2e19a92bb Ignore exit code for choco and ghcup installs
This means that they can now fallback to alternatve install options
2020-07-27 13:27:27 +01:00
Luke Lau
d8110230de Update ghcup to 0.1.8 and add ghc-8.8.4 support
Need to make the apt install function not error whenever it returns a
non-zero exit code, because ghc-8.8.4 isn't available via apt just yet
2020-07-23 13:11:51 +01:00
Jared Weakly
2d6ac72254 fix cabal update for private https hackages 2020-06-24 11:29:14 -07:00
Jared Weakly
cfefe70615 Fix macos ghcup and cabal flags (#4)
* fix short-circuit logic for ghcup based installs of ghc

* fix unrecognized user-config option for cabal v2.0

* update dependencies
2020-06-09 09:58:15 -07:00
Jared Weakly
bc8c103907 Update latest stack to v2.3.1 2020-04-30 11:52:49 -07:00
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
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
5fd55ef5c0 Don't unnecessarily split args 2020-03-27 17:59:12 -07:00
Jared Weakly
d3ac0a8114 Fix path construction error in windows 2020-03-27 17:56:26 -07:00
Jared Weakly
30f91c7927 Add basic cabal setup steps 2020-03-25 17:29:40 -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