Skip to content

Commit d6ab81d

Browse files
committed
CI windows: bootstrapping cache with stack path --stack-root impossible
1 parent 050f241 commit d6ab81d

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/test-windows.yaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,18 @@ jobs:
1818
steps:
1919

2020
- name: Determine stack root
21+
## 2023-11-21 https://github.com/commercialhaskell/stack/issues/6340
22+
## Asking stack for the stack root unfortunately does not work
23+
## if stack is not fully operational (meaning e.g. that GHC is installed)
24+
## so we hardcode its location instead.
2125
run: |
22-
STACK_ROOT="$(stack --system-ghc --no-install-ghc path --stack-root || echo "C:/Users/runneradmin/AppData/Local/Programs/stack/x86_64-windows")"
23-
echo "STACK_ROOT = ${STACK_ROOT}"
26+
STACK_ROOT="C:/Users/runneradmin/AppData/Local/Programs/stack/x86_64-windows"
2427
echo STACK_ROOT="${STACK_ROOT}" >> "${GITHUB_ENV}"
28+
# run: |
29+
# STACK_ROOT="$(stack --system-ghc --no-install-ghc path --stack-root || echo "C:/Users/runneradmin/AppData/Local/Programs/stack/x86_64-windows")"
30+
# echo "STACK_ROOT = ${STACK_ROOT}"
31+
# echo STACK_ROOT="${STACK_ROOT}" >> "${GITHUB_ENV}"
32+
# What about C:/Users/runneradmin/AppData/Roaming/stack ?
2533

2634
- name: 📥 Checkout repository
2735
uses: actions/checkout@v4

0 commit comments

Comments
 (0)