Skip to content

Lugendre/earthly-haskell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Earthly-Haskell

Earthlyでcabalを使ってHaskellをbuildするScript.

Examples

VERSION 0.8
ARG BASE_TAG="lugendre/earthly-haskell:"

IMPORT github.com/lugendre/earthly-haskell/base/alpine
IMPORT github.com/lugendre/earthly-haskell/haskell
IMPORT github.com/lugendre/earthly-haskell/installer

build:
  FROM alpine+alpine3.19.1
  DO installer+SETUP_HASKELL --GHC=9.6.4 --HPACK_VERSION=0.36.0
  # Cache the base image.
  SAVE IMAGE --push "${BASE_TAG}alpine3.19.1-ghc9.6.4"
  WORKDIR /production
  DO haskell+INIT
  COPY --keep-ts . .
  # Generate *.cabal files from package.yaml.
  DO haskell+FREEZE_WITH_STACKAGE --LTS_VERSION=lts-22.9
  DO haskell+CABAL --args="update"
  DO haskell+PRODUCTION_BUILD_STATIC \
    --target="all" \
    --output="all" \
    --extra-args="--jobs --constraint=\"vector -boundschecks\""
  SAVE ARTIFACT output output

docker:
  FROM alipine+alpine:3.19.1
  COPY +build/output .
  ENTRYPOINT ["./output"]
  SAVE IMAGE --push lugendre/earthly-haskell/examples:haskell

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published