Skip to content

Commit 4b47a23

Browse files
committed
Use 'with:' to specify toolchain
1 parent 81ebaf9 commit 4b47a23

File tree

1 file changed

+12
-20
lines changed

1 file changed

+12
-20
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,9 @@ jobs:
3131

3232
- name: Install GHCup
3333
uses: haskell/ghcup-setup@v1
34-
35-
- name: Setup toolchain
36-
run: |
37-
ghcup install ghc --set ${{ matrix.ghc }}
38-
ghcup install cabal --set latest
34+
with:
35+
ghc: ${{ matrix.ghc }}
36+
cabal: latest
3937

4038
- if: runner.os == 'macOS'
4139
name: Install system deps via brew
@@ -75,11 +73,9 @@ jobs:
7573
7674
- name: Install GHCup
7775
uses: haskell/ghcup-setup@v1
78-
79-
- name: Setup toolchain
80-
run: |
81-
ghcup install ghc --set latest
82-
ghcup install cabal --set latest
76+
with:
77+
ghc: latest
78+
cabal: latest
8379

8480
- uses: actions/checkout@v4
8581

@@ -102,11 +98,9 @@ jobs:
10298
10399
- name: Install GHCup
104100
uses: haskell/ghcup-setup@v1
105-
106-
- name: Setup toolchain
107-
run: |
108-
ghcup install ghc --set latest
109-
ghcup install cabal --set latest
101+
with:
102+
ghc: latest
103+
cabal: latest
110104

111105
- uses: actions/checkout@v4
112106
- name: Test
@@ -176,11 +170,9 @@ jobs:
176170
177171
- name: Install GHCup
178172
uses: haskell/ghcup-setup@v1
179-
180-
- name: Setup toolchain
181-
run: |
182-
ghcup install ghc --set ${{ matrix.ghc }}
183-
ghcup install cabal --set latest
173+
with:
174+
ghc: ${{ matrix.ghc }}
175+
cabal: latest
184176

185177
- name: Run build
186178
run: |

0 commit comments

Comments
 (0)