Force checkout to workspace root with path: ., use ./hs for build
Build / build (push) Failing after 8s
Build / build (push) Failing after 8s
This commit is contained in:
@@ -9,10 +9,12 @@ jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
IMAGE: ghcr.io/flipstone/haskell-tools:debian-ghc-9.10.3-5d6640d
|
||||
CONVERGE_HASKELL_TOOLS_IMAGE: ghcr.io/flipstone/haskell-tools:debian-ghc-9.10.3-5d6640d
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
path: .
|
||||
|
||||
- name: Cache Stack
|
||||
uses: actions/cache@v4
|
||||
@@ -21,21 +23,10 @@ jobs:
|
||||
key: stack-${{ runner.os }}-${{ hashFiles('stack.yaml', 'package.yaml') }}
|
||||
restore-keys: stack-${{ runner.os }}-
|
||||
|
||||
- name: Generate .cabal and Build
|
||||
- name: Build
|
||||
run: |
|
||||
mkdir -p .stack-root build
|
||||
docker run --rm \
|
||||
-v "$GITHUB_WORKSPACE:/work" \
|
||||
-v "$GITHUB_WORKSPACE/.stack-root:/stack-root" \
|
||||
-e STACK_ROOT=/stack-root \
|
||||
-w /work \
|
||||
"$IMAGE" \
|
||||
bash -c '
|
||||
set -e
|
||||
ls -la /work/
|
||||
hpack
|
||||
stack build --copy-bins --local-bin-path /work/build
|
||||
'
|
||||
./hs stack build --copy-bins --local-bin-path /work/build
|
||||
|
||||
- name: Compress with UPX
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user