Skip to content

Commit

Permalink
Use 'with:' to specify toolchain
Browse files Browse the repository at this point in the history
  • Loading branch information
hasufell committed Jan 4, 2025
1 parent 81ebaf9 commit ad18053
Showing 1 changed file with 12 additions and 20 deletions.
32 changes: 12 additions & 20 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,9 @@ jobs:

- name: Install GHCup
uses: haskell/ghcup-setup@v1

- name: Setup toolchain
run: |
ghcup install ghc --set ${{ matrix.ghc }}
ghcup install cabal --set latest
with:
ghc: ${{ matrix.ghc }}
cabal: latest

- if: runner.os == 'macOS'
name: Install system deps via brew
Expand Down Expand Up @@ -75,11 +73,9 @@ jobs:
- name: Install GHCup
uses: haskell/ghcup-setup@v1

- name: Setup toolchain
run: |
ghcup install ghc --set latest
ghcup install cabal --set latest
with:
ghc: latest
cabal: latest

- uses: actions/checkout@v4

Expand All @@ -102,11 +98,9 @@ jobs:
- name: Install GHCup
uses: haskell/ghcup-setup@v1

- name: Setup toolchain
run: |
ghcup install ghc --set latest
ghcup install cabal --set latest
with:
ghc: latest
cabal: latest

- uses: actions/checkout@v4
- name: Test
Expand Down Expand Up @@ -176,11 +170,9 @@ jobs:
- name: Install GHCup
uses: haskell/ghcup-setup@v1

- name: Setup toolchain
run: |
ghcup install ghc --set ${{ matrix.ghc }}
ghcup install cabal --set latest
with:
ghc: ${{ matrix.ghc }}
cabal: latest

- name: Run build
run: |
Expand Down

0 comments on commit ad18053

Please sign in to comment.