Run hpack before build, fix cache key, add container debug
Build / build (push) Failing after 6s

This commit is contained in:
2026-05-11 22:46:57 -04:00
parent 8efdedc451
commit 9521dee9c1
+8 -9
View File
@@ -18,16 +18,10 @@ jobs:
uses: actions/cache@v4
with:
path: .stack-root
key: stack-${{ runner.os }}-${{ hashFiles('stack.yaml', 'package.yaml', 'converge.cabal') }}
key: stack-${{ runner.os }}-${{ hashFiles('stack.yaml', 'package.yaml') }}
restore-keys: stack-${{ runner.os }}-
- name: Debug host
run: |
echo "pwd=$(pwd)"
echo "GITHUB_WORKSPACE=$GITHUB_WORKSPACE"
ls -la
- name: Build
- name: Generate .cabal and Build
run: |
mkdir -p .stack-root build
docker run --rm \
@@ -36,7 +30,12 @@ jobs:
-e STACK_ROOT=/stack-root \
-w /work \
"$IMAGE" \
stack build --copy-bins --local-bin-path /work/build
bash -c '
set -e
ls -la /work/
hpack
stack build --copy-bins --local-bin-path /work/build
'
- name: Compress with UPX
run: |