From 9521dee9c1d9bf1123a412f4a8b856809502239f Mon Sep 17 00:00:00 2001 From: James Brechtel Date: Mon, 11 May 2026 22:46:57 -0400 Subject: [PATCH] Run hpack before build, fix cache key, add container debug --- .gitea/workflows/build.yml | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index e58eb69..e1b3037 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -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: |