Commit Graph

25 Commits

Author SHA1 Message Date
Thomas Boop
8c47402eee Disable commands when choco installing and use old versions 2020-11-18 11:44:19 -05:00
Thomas Boop
7b9c49b13d refactor getChocoPath 2020-11-16 11:40:04 -05:00
Thomas Boop
0ab446a68d get chocoPathVersion Correctly 2020-11-16 11:23:35 -05:00
Thomas Boop
4cd1e346a4 Update readme and correctly add path 2020-11-16 11:13:21 -05:00
Thomas Boop
4861e20f66 Use seperate default version for windows 2020-11-16 10:48:35 -05:00
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
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-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
895038cb9e Actually build the js 2019-09-30 11:29:33 -07:00
Timothy Clem
a803c8eafa These do not need to be async 2019-09-30 11:20:46 -07:00
Timothy Clem
ed3f2cf6f6 Throw an error, just to test 2019-09-30 11:12:07 -07:00
Timothy Clem
c7bae09eed Log what the toolPath is we are looking for 2019-09-30 11:00:01 -07:00
Timothy Clem
b27e423a65 Format 2019-09-30 10:40:10 -07:00
Timothy Clem
116f7892df Don't check for .complete 2019-09-30 10:38:50 -07:00
Timothy Clem
11998570ec Use ghc/cabal where they are installed (no toolcache) 2019-09-30 10:01:13 -07:00
Timothy Clem
fd2c5e7601 Handle defaults up a level 2019-09-23 20:32:15 -07:00
Timothy Clem
8cd05073c6 Allow setting cabal version too 2019-09-23 20:07:29 -07:00
Timothy Clem
1068d0618d Initial project setup
Partly ported from actions/setup-ruby
2019-09-23 19:56:26 -07:00