This repository was archived by the owner on Oct 7, 2020. It is now read-only.
File tree 2 files changed +5
-4
lines changed
2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change
1
+ export CABAL_DIR="D:\cabal"
1
2
export GHCS_PATH=$(cygpath $ProgramData)/chocolatey/lib/ghc/tools
2
3
export GHC_PATH=$GHCS_PATH/ghc-$GHC_VERSION
3
- export CABAL_ROOT=$(cygpath $APPDATA)/cabal
4
+ export CABAL_ROOT=$(cygpath $CABAL_DIR)
4
5
export Z3_BIN_PATH=/usr/local/z3-4.8.5-x64-win/bin
5
6
export PATH=$CABAL_ROOT/bin:$GHC_PATH/bin:$Z3_BIN_PATH:$PATH
Original file line number Diff line number Diff line change @@ -20,15 +20,14 @@ jobs:
20
20
steps :
21
21
- task : Cache@2
22
22
inputs :
23
- key : ' "cabal" | "$(Agent.OS)" | "$(CABAL_VERSION)" | "$(GHC_VERSION)" | $(Build.SourcesDirectory)/cabal.project | $(Build.SourcesDirectory)/haskell-ide-engine.cabal | $(Build.SourcesDirectory)/hie-plugin-api/hie-plugin-api.cabal'
23
+ key : ' "cabal-v2 " | "$(Agent.OS)" | "$(CABAL_VERSION)" | "$(GHC_VERSION)" | $(Build.SourcesDirectory)/cabal.project | $(Build.SourcesDirectory)/haskell-ide-engine.cabal | $(Build.SourcesDirectory)/hie-plugin-api/hie-plugin-api.cabal'
24
24
path : .azure-cache
25
25
cacheHitVar : CACHE_RESTORED
26
26
displayName : " Download cache"
27
27
- bash : |
28
- df -k
29
28
source .azure/windows-cabal.bashrc
30
29
mkdir -p $CABAL_ROOT
31
- tar -vxzf .azure-cache/cabal-root.tar.gz -C /c
30
+ tar -vxzf .azure-cache/cabal-root.tar.gz -C /d
32
31
mkdir -p $CABAL_STORE_DIR
33
32
tar -vxzf .azure-cache/cabal-store.tar.gz -C /d
34
33
mkdir -p ${CABAL_STORE_DIR}i
45
44
choco install -y --ignore-dependencies ghc --version=$GHC_VERSION
46
45
displayName: Install ghc
47
46
- bash : |
47
+ source .azure/windows-cabal.bashrc
48
48
choco install -y cabal --version=$CABAL_VERSION
49
49
$(cygpath $ProgramData)/chocolatey/bin/RefreshEnv.cmd
50
50
displayName: Install cabal
You can’t perform that action at this time.
0 commit comments