mirror of
https://github.com/reanimate/reanimate.git
synced 2026-09-14 09:32:22 +00:00
77 lines
3.4 KiB
YAML
77 lines
3.4 KiB
YAML
jobs:
|
|
- job: ${{ parameters.name }}
|
|
timeoutInMinutes: 120
|
|
variables:
|
|
STACK_ROOT: $(Build.SourcesDirectory)/.stack-root
|
|
pool:
|
|
vmImage: ${{ parameters.vmImage }}
|
|
strategy:
|
|
matrix:
|
|
stack:
|
|
BUILD: stack
|
|
STACK_YAML: stack-lts-14.yaml # lts-15 is broken. "Access violation in generated code" :-/
|
|
ARGS: --pedantic
|
|
stack-lts-14:
|
|
BUILD: stack
|
|
STACK_YAML: stack-lts-14.yaml
|
|
stack-lts-13:
|
|
BUILD: stack
|
|
STACK_YAML: stack-lts-13.yaml
|
|
maxParallel: 6
|
|
steps:
|
|
- task: Cache@2
|
|
inputs:
|
|
key: ${{ parameters.name }} | ${{ parameters.vmImage }} | $(STACK_YAML) | stack-root | $(Agent.OS) | version 2
|
|
path: $(STACK_ROOT)
|
|
cacheHitVar: CACHE_RESTORED
|
|
displayName: Cache stack root
|
|
- bash: |
|
|
set -o xtrace
|
|
#curl -sSkL https://icl.cs.utk.edu/lapack-for-windows/libraries/VisualStudio/3.7.0/Dynamic-MINGW/Win64/libblas.dll -o libblas.dll
|
|
# curl -sSkL https://icl.cs.utk.edu/lapack-for-windows/libraries/VisualStudio/3.7.0/Dynamic-MINGW/Win64/libblas.lib -o libblas.lib
|
|
#curl -sSkL https://icl.cs.utk.edu/lapack-for-windows/libraries/VisualStudio/3.7.0/Dynamic-MINGW/Win64/liblapack.dll -o liblapack.dll
|
|
# curl -sSkL https://icl.cs.utk.edu/lapack-for-windows/libraries/VisualStudio/3.7.0/Dynamic-MINGW/Win64/liblapack.lib -o liblapack.lib
|
|
# cp libblas.dll libblas.lib liblapack.dll liblapack.lib /usr/lib/
|
|
# cp libblas.dll libblas.lib liblapack.dll liblapack.lib /lib/
|
|
# cp libblas.dll libblas.lib liblapack.dll liblapack.lib /usr/local/lib/
|
|
# cp libblas.dll libblas.lib liblapack.dll liblapack.lib /c/mingw810/prerequisites/x86_64-binutils-nomulti/x86_64-w64-mingw32/lib
|
|
# cp libblas.dll libblas.lib liblapack.dll liblapack.lib /c/mingw810/prerequisites/x86_64-binutils-nomulti/lib
|
|
echo $CONDA
|
|
echo $PATH
|
|
CWD=`pwd`
|
|
cd "$CONDA/condabin/"
|
|
export PATH=`pwd`:$PATH
|
|
cd $CWD
|
|
echo $PATH
|
|
echo `which conda.bat`
|
|
echo `which conda`
|
|
conda info --envs
|
|
ls $CONDA/condabin
|
|
# $CONDA/condabin/conda.bat create --yes --name reanimate
|
|
# $CONDA/condabin/conda.bat activate reanimate
|
|
$CONDA/condabin/conda.bat
|
|
$CONDA/condabin/conda.bat install --yes --quiet -c conda-forge libblas
|
|
$CONDA/condabin/conda.bat install --yes --quiet -c conda-forge liblapack
|
|
find "$CONDA" -name '*libblas*'
|
|
find "$CONDA" -name '*lapack*'
|
|
# export LIBRARY_PATH="`pwd`;$LIBRARY_PATH"
|
|
curl -sSkL http://www.stackage.org/stack/windows-x86_64 -o /usr/bin/stack.zip
|
|
unzip -o /usr/bin/stack.zip -d /usr/bin/
|
|
env:
|
|
OS_NAME: ${{ parameters.os }}
|
|
displayName: 'Setup'
|
|
- bash: |
|
|
set -o xtrace
|
|
stack --install-ghc build $ARGS --no-keep-going --fast --flag reanimate:-hmatrix --extra-lib-dirs="$CONDA/Library/bin/" --only-dependencies
|
|
stack --install-ghc test $ARGS --no-keep-going --fast --flag reanimate:-hmatrix --flag reanimate:test --extra-lib-dirs="$CONDA/Library/bin/" --only-dependencies
|
|
env:
|
|
OS_NAME: ${{ parameters.os }}
|
|
displayName: 'Install dependencies'
|
|
- bash: |
|
|
set -o xtrace
|
|
stack ./examples/counter.hs check
|
|
rm examples/*.golden
|
|
stack test --flag reanimate:test --flag reanimate:-hmatrix --test-arguments="-j2" --fast --extra-lib-dirs="$CONDA/Library/bin/"
|
|
env:
|
|
OS_NAME: ${{ parameters.os }}
|
|
displayName: 'Build & Test'
|