This commit is contained in:
@@ -18,16 +18,10 @@ jobs:
|
|||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: .stack-root
|
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 }}-
|
restore-keys: stack-${{ runner.os }}-
|
||||||
|
|
||||||
- name: Debug host
|
- name: Generate .cabal and Build
|
||||||
run: |
|
|
||||||
echo "pwd=$(pwd)"
|
|
||||||
echo "GITHUB_WORKSPACE=$GITHUB_WORKSPACE"
|
|
||||||
ls -la
|
|
||||||
|
|
||||||
- name: Build
|
|
||||||
run: |
|
run: |
|
||||||
mkdir -p .stack-root build
|
mkdir -p .stack-root build
|
||||||
docker run --rm \
|
docker run --rm \
|
||||||
@@ -36,7 +30,12 @@ jobs:
|
|||||||
-e STACK_ROOT=/stack-root \
|
-e STACK_ROOT=/stack-root \
|
||||||
-w /work \
|
-w /work \
|
||||||
"$IMAGE" \
|
"$IMAGE" \
|
||||||
|
bash -c '
|
||||||
|
set -e
|
||||||
|
ls -la /work/
|
||||||
|
hpack
|
||||||
stack build --copy-bins --local-bin-path /work/build
|
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