Skip to content
This repository was archived by the owner on Oct 7, 2020. It is now read-only.

Commit 72d61b1

Browse files
authored
Merge pull request #1627 from jneira/azure-fix-installhs
Fix cabal-hie-install in windows azure ci
2 parents d3a5227 + 56ffc31 commit 72d61b1

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.azure/windows-cabal.bashrc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
export CABAL_DIR="D:\cabal"
21
export GHCS_PATH=$(cygpath $ProgramData)/chocolatey/lib/ghc/tools
32
export GHC_PATH=$GHCS_PATH/ghc-$GHC_VERSION
43
export CABAL_ROOT=$(cygpath $CABAL_DIR)

.azure/windows-cabal.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ jobs:
1414
GHC_VERSION: "8.4.4"
1515
variables:
1616
CABAL_VERSION: "3.0.0.0"
17+
CABAL_DIR: "D:\\cabal"
1718
CABAL_STORE_DIR: "D:\\sd"
1819
LIQUID_VERSION: "0.8.6.2"
1920
STACK_ROOT: "D:\\sr"

.azure/windows-installhs-cabal.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ jobs:
66
variables:
77
GHC_VERSION: "8.6.5"
88
CABAL_VERSION: "3.0.0.0"
9-
PROJECT_FILE: "./install/shake.project"
9+
CABAL_DIR: "" # To use the default one (cabal-hie-install latest fails with a custom one)
1010
CABAL_STORE_DIR: "D:\\sd"
11+
PROJECT_FILE: "./install/shake.project"
1112
steps:
1213
- task: Cache@2
1314
inputs:
@@ -18,7 +19,7 @@ jobs:
1819
- bash: |
1920
source .azure/windows-cabal.bashrc
2021
mkdir -p $CABAL_ROOT
21-
tar -vxzf .azure-cache/cabal-root.tar.gz -C /c
22+
tar -vxzf .azure-cache/cabal-root.tar.gz -C /d
2223
mkdir -p $CABAL_STORE_DIR
2324
tar -vxzf .azure-cache/cabal-store.tar.gz -C /d
2425
mkdir -p ./dist-newstyle

0 commit comments

Comments
 (0)