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:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
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:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
path: .
|
||||||
|
|
||||||
- name: Cache Stack
|
- name: Cache Stack
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
@@ -21,21 +23,10 @@ jobs:
|
|||||||
key: stack-${{ runner.os }}-${{ hashFiles('stack.yaml', 'package.yaml') }}
|
key: stack-${{ runner.os }}-${{ hashFiles('stack.yaml', 'package.yaml') }}
|
||||||
restore-keys: stack-${{ runner.os }}-
|
restore-keys: stack-${{ runner.os }}-
|
||||||
|
|
||||||
- name: Generate .cabal and Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
mkdir -p .stack-root build
|
mkdir -p .stack-root build
|
||||||
docker run --rm \
|
./hs stack build --copy-bins --local-bin-path /work/build
|
||||||
-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
|
|
||||||
'
|
|
||||||
|
|
||||||
- name: Compress with UPX
|
- name: Compress with UPX
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user