summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorAndrew Prokhorenkov <andrew.prokhorenkov@gmail.com>2020-01-25 00:48:39 -0600
committerKevin Song <chipbuster@users.noreply.github.com>2020-01-25 00:48:39 -0600
commit6f2c9fb397fcfb22829c043a23372afe1f877499 (patch)
tree48b64728a098dcd95f2e694b0a62dd66467fc47b /.github
parentf4c095de92a09b7143766c4759ab0e60ff0befbb (diff)
feat: add Haskell Stack support (#546)
Add a Haskell Stack module when a stack.yaml file is detected
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/workflow.yml17
1 files changed, 17 insertions, 0 deletions
diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml
index 202e7bf55..c4900c6b8 100644
--- a/.github/workflows/workflow.yml
+++ b/.github/workflows/workflow.yml
@@ -116,6 +116,23 @@ jobs:
toolchain: stable
override: true
+ # Install Stack at a fixed version (Linux & macOS version)
+ - name: Install Stack [-nix]
+ if: matrix.os != 'windows-latest'
+ uses: mstksg/setup-stack@v1
+
+ # Install Stack at a fixed version (Windows version), use Chocolatey
+ - name: Install Stack [-windows]
+ if: matrix.os == 'windows-latest'
+ uses: crazy-max/ghaction-chocolatey@v1
+ with:
+ args: install haskell-stack -y
+
+ - name: Install GHC version
+ env:
+ ARGS: --resolver nightly-2019-09-21
+ run: stack $ARGS ghc -- --numeric-version --no-install-ghc
+
# Install Node.js at a fixed version
- uses: actions/setup-node@v1
with: