This commit is contained in:
@@ -9,7 +9,7 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
CONVERGE_HASKELL_TOOLS_IMAGE: ghcr.io/flipstone/haskell-tools:debian-ghc-9.10.3-5d6640d
|
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
|
||||||
@@ -21,10 +21,24 @@ jobs:
|
|||||||
key: stack-${{ runner.os }}-${{ hashFiles('stack.yaml', 'package.yaml', 'converge.cabal') }}
|
key: stack-${{ runner.os }}-${{ hashFiles('stack.yaml', 'package.yaml', 'converge.cabal') }}
|
||||||
restore-keys: stack-${{ runner.os }}-
|
restore-keys: stack-${{ runner.os }}-
|
||||||
|
|
||||||
- name: Build
|
- name: Debug mount
|
||||||
run: |
|
run: |
|
||||||
mkdir -p .stack-root build
|
mkdir -p .stack-root build
|
||||||
./hs stack build --copy-bins --local-bin-path /work/build
|
docker run --rm \
|
||||||
|
-v "$(pwd):/work" \
|
||||||
|
-w /work \
|
||||||
|
"$IMAGE" \
|
||||||
|
sh -c 'pwd && ls -la && cat stack.yaml && ls /stack-root'
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: |
|
||||||
|
docker run --rm \
|
||||||
|
-v "$(pwd):/work" \
|
||||||
|
-v "$(pwd)/.stack-root:/stack-root" \
|
||||||
|
-e STACK_ROOT=/stack-root \
|
||||||
|
-w /work \
|
||||||
|
"$IMAGE" \
|
||||||
|
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