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

Azure fix win cabal 8.4.4 #1619

Merged
merged 3 commits into from
Jan 31, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .azure/windows-cabal.bashrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export CABAL_DIR="D:\cabal"
export GHCS_PATH=$(cygpath $ProgramData)/chocolatey/lib/ghc/tools
export GHC_PATH=$GHCS_PATH/ghc-$GHC_VERSION
export CABAL_ROOT=$(cygpath $APPDATA)/cabal
export CABAL_ROOT=$(cygpath $CABAL_DIR)
export Z3_BIN_PATH=/usr/local/z3-4.8.5-x64-win/bin
export PATH=$CABAL_ROOT/bin:$GHC_PATH/bin:$Z3_BIN_PATH:$PATH
6 changes: 3 additions & 3 deletions .azure/windows-cabal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,14 @@ jobs:
steps:
- task: Cache@2
inputs:
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'
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'
path: .azure-cache
cacheHitVar: CACHE_RESTORED
displayName: "Download cache"
- bash: |
df -k
source .azure/windows-cabal.bashrc
mkdir -p $CABAL_ROOT
tar -vxzf .azure-cache/cabal-root.tar.gz -C /c
tar -vxzf .azure-cache/cabal-root.tar.gz -C /d
mkdir -p $CABAL_STORE_DIR
tar -vxzf .azure-cache/cabal-store.tar.gz -C /d
mkdir -p ${CABAL_STORE_DIR}i
Expand All @@ -45,6 +44,7 @@ jobs:
choco install -y --ignore-dependencies ghc --version=$GHC_VERSION
displayName: Install ghc
- bash: |
source .azure/windows-cabal.bashrc
choco install -y cabal --version=$CABAL_VERSION
$(cygpath $ProgramData)/chocolatey/bin/RefreshEnv.cmd
displayName: Install cabal
Expand Down