;ci: github: windows tweaks

This commit is contained in:
Simon Michael 2020-03-06 11:16:13 -08:00
parent 1fb6fbe807
commit 3909b76a20

View File

@ -49,23 +49,11 @@ jobs:
path: ~/.stack
key: ${{ runner.os }}-stack
# - name: Cache %APPDATA%/.stack
# uses: actions/cache@v1
# with:
# path: %APPDATA%/.stack
# key: ${{ runner.os }}-stack
- name: Cache $APPDATA/.stack
- name: Cache C:\Users\runneradmin\AppData\Local\Programs\stack\
uses: actions/cache@v1
with:
path: $APPDATA/.stack
key: ${{ runner.os }}-stack
# - name: Cache %APPDATA%/local/bin
# uses: actions/cache@v1
# with:
# path: %APPDATA%/local/bin
# key: ${{ runner.os }}-local-bin
path: C:\Users\runneradmin\AppData\Local\Programs\stack\
key: ${{ runner.os }}-appdata-stack
- name: Cache $APPDATA/local/bin
uses: actions/cache@v1
@ -114,9 +102,17 @@ jobs:
7z x stack.zip -oC:\Windows stack.exe
stack --version
- name: Show stuff
run: |
ls C:\Users\runneradmin\
ls C:\Users\runneradmin\AppData\
ls C:\Users\runneradmin\AppData\Local\
ls C:\Users\runneradmin\AppData\Local\Programs\
ls C:\Users\runneradmin\AppData\Local\Programs\stack
- name: Install GHC
run: |
stack --resolver=lts setup
stack --resolver=lts --no-terminal setup
# - name: Install shelltestrunner
# - if [[ ! -x ~/.local/bin/shelltest ]]; then stack install shelltestrunner-1.9; fi
@ -124,13 +120,13 @@ jobs:
- name: Install haskell deps
run: |
stack --resolver=lts test --only-dependencies
# --no-terminal --bench --install-ghc
stack --resolver=lts --no-terminal test --only-dependencies
# --bench --install-ghc
- name: Build hledger
run: |
stack --resolver=lts install --ghc-options=-Werror --test
# --no-terminal --bench --no-run-benchmarks --haddock --no-haddock-deps
stack --resolver=lts --no-terminal install --ghc-options=-Werror --test
# --bench --no-run-benchmarks --haddock --no-haddock-deps
# run hledger-lib/hledger functional tests, skipping the ones for addons
#- COLUMNS=80 stack exec -- shelltest --execdir -j16 tests -x /bin -x /addons