;ci: github: windows tweaks
This commit is contained in:
parent
1fb6fbe807
commit
3909b76a20
36
.github/workflows/windows-ci.yml
vendored
36
.github/workflows/windows-ci.yml
vendored
@ -49,23 +49,11 @@ jobs:
|
|||||||
path: ~/.stack
|
path: ~/.stack
|
||||||
key: ${{ runner.os }}-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/.stack
|
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v1
|
||||||
with:
|
with:
|
||||||
path: $APPDATA/.stack
|
path: C:\Users\runneradmin\AppData\Local\Programs\stack\
|
||||||
key: ${{ runner.os }}-stack
|
key: ${{ runner.os }}-appdata-stack
|
||||||
|
|
||||||
# - name: Cache %APPDATA%/local/bin
|
|
||||||
# uses: actions/cache@v1
|
|
||||||
# with:
|
|
||||||
# path: %APPDATA%/local/bin
|
|
||||||
# key: ${{ runner.os }}-local-bin
|
|
||||||
|
|
||||||
- name: Cache $APPDATA/local/bin
|
- name: Cache $APPDATA/local/bin
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v1
|
||||||
@ -114,9 +102,17 @@ jobs:
|
|||||||
7z x stack.zip -oC:\Windows stack.exe
|
7z x stack.zip -oC:\Windows stack.exe
|
||||||
stack --version
|
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
|
- name: Install GHC
|
||||||
run: |
|
run: |
|
||||||
stack --resolver=lts setup
|
stack --resolver=lts --no-terminal setup
|
||||||
|
|
||||||
# - name: Install shelltestrunner
|
# - name: Install shelltestrunner
|
||||||
# - if [[ ! -x ~/.local/bin/shelltest ]]; then stack install shelltestrunner-1.9; fi
|
# - if [[ ! -x ~/.local/bin/shelltest ]]; then stack install shelltestrunner-1.9; fi
|
||||||
@ -124,13 +120,13 @@ jobs:
|
|||||||
|
|
||||||
- name: Install haskell deps
|
- name: Install haskell deps
|
||||||
run: |
|
run: |
|
||||||
stack --resolver=lts test --only-dependencies
|
stack --resolver=lts --no-terminal test --only-dependencies
|
||||||
# --no-terminal --bench --install-ghc
|
# --bench --install-ghc
|
||||||
|
|
||||||
- name: Build hledger
|
- name: Build hledger
|
||||||
run: |
|
run: |
|
||||||
stack --resolver=lts install --ghc-options=-Werror --test
|
stack --resolver=lts --no-terminal install --ghc-options=-Werror --test
|
||||||
# --no-terminal --bench --no-run-benchmarks --haddock --no-haddock-deps
|
# --bench --no-run-benchmarks --haddock --no-haddock-deps
|
||||||
|
|
||||||
# run hledger-lib/hledger functional tests, skipping the ones for addons
|
# run hledger-lib/hledger functional tests, skipping the ones for addons
|
||||||
#- COLUMNS=80 stack exec -- shelltest --execdir -j16 tests -x /bin -x /addons
|
#- COLUMNS=80 stack exec -- shelltest --execdir -j16 tests -x /bin -x /addons
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user