Clean up
This commit is contained in:
parent
9c4cec0e3f
commit
64eaa720c0
13
.github/scripts/cabal-cache.sh
vendored
13
.github/scripts/cabal-cache.sh
vendored
@ -11,6 +11,10 @@ if ! command -v ghcup ; then
|
|||||||
install_ghcup
|
install_ghcup
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "${RUNNER_OS}" = "macOS" ] ; then
|
||||||
|
rm -rf "${CABAL_DIR}"/store/*
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
# ensure ghc
|
# ensure ghc
|
||||||
ghcup install ghc --set 8.10.7
|
ghcup install ghc --set 8.10.7
|
||||||
@ -21,10 +25,15 @@ cabal --version
|
|||||||
|
|
||||||
cabal update
|
cabal update
|
||||||
|
|
||||||
git clone --single-branch --branch main https://github.com/hasufell/cabal-cache.git
|
git clone --single-branch --branch main https://github.com/haskell-works/cabal-cache.git
|
||||||
cd cabal-cache
|
cd cabal-cache
|
||||||
|
|
||||||
cabal build
|
if [ "${DISTRO}" = "Alpine" ] ; then
|
||||||
|
cabal build --ghc-options='-split-sections -optl-static'
|
||||||
|
else
|
||||||
|
cabal build
|
||||||
|
fi
|
||||||
|
|
||||||
binary=$(cabal list-bin cabal-cache)
|
binary=$(cabal list-bin cabal-cache)
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
|
7
.github/workflows/cabal-cache.yaml
vendored
7
.github/workflows/cabal-cache.yaml
vendored
@ -146,6 +146,12 @@ jobs:
|
|||||||
path: |
|
path: |
|
||||||
./out/*
|
./out/*
|
||||||
|
|
||||||
|
- if: always()
|
||||||
|
uses: docker://arm64v8/ubuntu:focal
|
||||||
|
name: Cleanup (aarch64 linux)
|
||||||
|
with:
|
||||||
|
args: rm -rf .ghcup/ cabal/ dist-newstyle/ out/ cabal-cache
|
||||||
|
|
||||||
build-macwin:
|
build-macwin:
|
||||||
name: Build binary (Mac/Win)
|
name: Build binary (Mac/Win)
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
@ -197,3 +203,4 @@ jobs:
|
|||||||
name: artifacts
|
name: artifacts
|
||||||
path: |
|
path: |
|
||||||
./out/*
|
./out/*
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user