@@ -20,26 +20,23 @@ jobs:
20
20
steps :
21
21
- uses : actions/checkout@v2
22
22
23
- - name : create ~/.local/bin
24
- run : mkdir -p "$HOME/.local/bin"
25
- shell : bash
26
-
27
- - name : Add ~/.local/bin to PATH
28
- run : echo "$HOME/.local/bin" >> $GITHUB_PATH
29
- shell : bash
30
-
31
23
- if : matrix.os == 'windows-latest'
32
24
name : Install ghcup on windows
33
25
run : Set-ExecutionPolicy Bypass -Scope Process -Force;[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072;Invoke-Command -ScriptBlock ([ScriptBlock]::Create((Invoke-WebRequest https://www.haskell.org/ghcup/sh/bootstrap-haskell.ps1 -UseBasicParsing))) -ArgumentList $false,$true,$true,$false,$false,$false,$false,"C:\","", "C:\msys64"
34
26
27
+ - if : matrix.os == 'windows-latest'
28
+ name : Install make on windows
29
+ run : C:\msys64\usr\bin\bash -lc "pacman -S --noconfirm make"
30
+
35
31
- if : matrix.os == 'windows-latest'
36
32
name : Add ghcup to PATH
37
- run : echo "/c/ghcup/bin" >> $GITHUB_PATH
38
- shell : bash
33
+ run : echo "C:\ghcup\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
39
34
40
35
- if : matrix.os != 'windows-latest'
41
36
name : Install ghcup on non-windows
42
- run : curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | BOOTSTRAP_HASKELL_NONINTERACTIVE=1 BOOTSTRAP_HASKELL_MINIMAL=1 sh
37
+ run : |
38
+ curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | BOOTSTRAP_HASKELL_NONINTERACTIVE=1 BOOTSTRAP_HASKELL_MINIMAL=1 sh
39
+ echo "$HOME/.cabal/bin" >> $GITHUB_PATH
43
40
44
41
- name : Install ghc/cabal
45
42
run : |
51
48
run : cabal update
52
49
shell : bash
53
50
54
- - name : Install cpphs
55
- run : cabal install --installdir="$HOME/.local/bin" --overwrite-policy=always --install-method=copy cpphs
51
+ - if : matrix.os == 'windows-latest'
52
+ name : Install cpphs
53
+ run : cabal install --installdir="C:\ghcup\bin" --overwrite-policy=always --install-method=copy cpphs
54
+
55
+ - if : matrix.os != 'windows-latest'
56
+ name : Install cpphs
57
+ run : cabal install --overwrite-policy=always --install-method=copy cpphs
56
58
shell : bash
57
59
58
60
- name : Build
0 commit comments