Skip to content

GA(deps): Bump actions/cache from 3.3.2 to 3.3.3 #522

GA(deps): Bump actions/cache from 3.3.2 to 3.3.3

GA(deps): Bump actions/cache from 3.3.2 to 3.3.3 #522

Workflow file for this run

name: CI
on: push
permissions:
contents: read
jobs:
hlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- name: "Set up HLint"
uses: haskell-actions/hlint-setup@479607c42f1ab77f0a58ad02f981f5ebd7928415
- name: "Run HLint"
uses: haskell-actions/hlint-run@9abc70d8a40b111d76e44eb4ed4b45c76d723b3d
with:
path: '["app/", "src/", "test/"]'
fail-on: warning
fourmolu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- name: "Check formatting with Fourmolu"
uses: haskell-actions/run-fourmolu@5f705691205a8e6efb36c043d7b461ecb97ee082
build-binary:
needs: hlint
runs-on: ubuntu-latest
env:
CONFIG: "--enable-tests --enable-benchmarks"
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- uses: haskell-actions/setup@75089801accaefd2e8c4a899d6101caa5bdcbc77
id: setup-haskell-cabal
with:
ghc-version: "9.4"
cabal-version: "latest"
- name: Update Hackage snapshot
run: |
cabal update
cabal freeze $CONFIG
- name: Cache dependencies
uses: actions/cache@e12d46a63a90f2fae62d114769bbf2a179198b5c
with:
path: |
${{ steps.setup-haskell-cabal.outputs.cabal-store }}
dist-newstyle
key: ${{ runner.os }}-${{ matrix.ghc }}-${{ hashFiles('cabal.project.freeze') }}
restore-keys: |
${{ runner.os }}-${{ matrix.ghc }}-
- name: Build dependencies
run: cabal build --only-dependencies $CONFIG
- name: Build application
run: cabal build $CONFIG all
- name: Run tests
run: cabal test $CONFIG all
- name: Generate documentation
run: cabal haddock $CONFIG all
- name: Install binary
run: cabal install --enable-executable-static --install-method=copy --overwrite-policy=always --installdir=dist/
- name: Rename binary
run: mv dist/eselsohr-exe dist/eselsohr
- name: Store application binary as artifact
uses: actions/upload-artifact@c7d193f32edcb7bfad88892161225aeda64e9392
with:
name: eselsohr
path: dist/eselsohr