Skip to content

Commit 4abd436

Browse files
committed
[ ci ] Setup Haskell for macOS
1 parent 390b7db commit 4abd436

File tree

1 file changed

+20
-14
lines changed

1 file changed

+20
-14
lines changed

.github/workflows/test-mac.yaml

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ name: CI (macOS)
44

55
on:
66
push:
7-
branches: [master, ci-*]
7+
branches: [master, ci-*, ci]
88
tags:
99
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
1010
pull_request:
@@ -18,7 +18,7 @@ jobs:
1818
- name: 📥 Checkout repository
1919
uses: actions/checkout@v4
2020

21-
- name: Determine stack resolver
21+
- name: 🔍 Determine stack resolver
2222
run: |
2323
STACK_RESOLVER=$(yq .resolver stack.yaml)
2424
echo STACK_RESOLVER="${STACK_RESOLVER}" >> "${GITHUB_ENV}"
@@ -50,18 +50,24 @@ jobs:
5050
run: |
5151
echo PKG_CONFIG_PATH="$(brew --prefix)/opt/icu4c/lib/pkgconfig" >> "${GITHUB_ENV}"
5252
53-
- name: ⏬ Install stack
54-
run: |
55-
# mkdir -p ~/.local/bin
56-
# export PATH=~/.local/bin:$PATH
57-
## Stack is preinstalled on the GHA runners
58-
# brew install gnu-tar; curl -sL https://get.haskellstack.org/stable/osx-x86_64.tar.gz | gtar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'; chmod a+x ~/.local/bin/stack
59-
# if [[ ! -x ~/.local/bin/stack ]]; then brew install gnu-tar; curl -sL https://get.haskellstack.org/stable/osx-x86_64.tar.gz | gtar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'; chmod a+x ~/.local/bin/stack; fi
60-
stack --version
61-
62-
- name: ⏬ Install GHC
63-
run: |
64-
stack setup --install-ghc
53+
- name: ⏬ Setup Haskell
54+
uses: haskell-actions/setup@v2
55+
id: setup-haskell
56+
with:
57+
ghc-version: 9.8.2
58+
59+
# - name: ⏬ Install stack
60+
# run: |
61+
# # mkdir -p ~/.local/bin
62+
# # export PATH=~/.local/bin:$PATH
63+
# ## Stack is preinstalled on the GHA runners
64+
# # brew install gnu-tar; curl -sL https://get.haskellstack.org/stable/osx-x86_64.tar.gz | gtar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'; chmod a+x ~/.local/bin/stack
65+
# # if [[ ! -x ~/.local/bin/stack ]]; then brew install gnu-tar; curl -sL https://get.haskellstack.org/stable/osx-x86_64.tar.gz | gtar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'; chmod a+x ~/.local/bin/stack; fi
66+
# stack --version
67+
68+
# - name: ⏬ Install GHC
69+
# run: |
70+
# stack setup --install-ghc
6571

6672
- name: ⏬ Install dependencies
6773
run: |

0 commit comments

Comments
 (0)