Skip to content

Commit

Permalink
Use ghcup on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
hasufell committed Aug 30, 2021
1 parent 219b6f0 commit 75c18c2
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/haskell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,30 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]
ghc: ['8.0.2', '8.2.2', '8.4.4', '8.6.5', '8.8.4', '8.10.5']
ghc: ['8.0.2', '8.2.2', '8.4.4', '8.6.5', '8.8.4', '8.10.7']
cabal: ['3.4.0.0']

steps:
- uses: actions/checkout@v2
- uses: haskell/actions/[email protected]
- if: matrix.os != 'windows-latest'
uses: haskell/actions/[email protected]
with:
ghc-version: ${{ matrix.ghc }}
cabal-version: ${{ matrix.cabal }}

- if: matrix.os == 'windows-latest'
name: Install ghcup
run: |
curl.exe -O https://gitlab.haskell.org/haskell/ghcup-hs/-/raw/master/bootstrap-haskell.ps1
curl.exe -O https://gitlab.haskell.org/haskell/ghcup-hs/-/raw/master/bootstrap-haskell
./bootstrap-haskell.ps1 -InstallDir 'C:\' -BootstrapUrl $pwd/bootstrap-haskell -InBash -Minimal
C:\ghcup\bin\ghcup.exe install ghc ${{ matrix.ghc }}
C:\ghcup\bin\ghcup.exe install cabal ${{ matrix.cabal }}
- if: matrix.os == 'windows-latest'
run: echo "/c/ghcup/bin" >> $GITHUB_PATH
shell: bash

- name: create ~/.local/bin
run: mkdir -p "$HOME/.local/bin"
shell: bash
Expand Down

0 comments on commit 75c18c2

Please sign in to comment.