Skip to content

reverted change

reverted change #26

Workflow file for this run

######################################################
## ##
## !!!! Autogenerated YAML file, do not edit !!!! ##
## ##
## Edit source in /src/github/workflows/ instead! ##
## ##
######################################################
jobs:
build:
env:
FLAGS: -fenable-cluster-counting --disable-library-profiling --enable-documentation
if: |
!contains(github.event.head_commit.message, '[skip ci]')
&& !contains(github.event.head_commit.message, '[ci skip]')
&& !contains(github.event.head_commit.message, '[github skip]')
&& !contains(github.event.head_commit.message, '[skip github]')
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- id: setup-haskell
uses: haskell-actions/setup@v2
with:
cabal-update: true
cabal-version: ${{ matrix.cabal-ver }}
ghc-version: ${{ matrix.ghc-ver }}
- name: Environment settings based on the Haskell setup
run: |
GHC_VER=$(ghc --numeric-version)
CABAL_VER=$(cabal --numeric-version)
echo "GHC_VER = ${GHC_VER}"
echo "CABLAL_VER = ${CABAL_VER}"
echo "GHC_VER=${GHC_VER}" >> "${GITHUB_ENV}"
echo "CABAL_VER=${CABAL_VER}" >> "${GITHUB_ENV}"
- name: Configure the build plan
run: |
cabal configure ${FLAGS}
cabal build --dry-run
- id: cache
name: Cache dependencies
uses: actions/cache@v4
with:
key: haddock.yml-${{ runner.os }}-ghc-${{ env.GHC_VER }}-cabal-${{ env.CABAL_VER
}}-${{ hashFiles('**/plan.json') }}
path: |
${{ steps.setup-haskell.outputs.cabal-store }}
restore-keys: |
haddock.yml-${{ runner.os }}-ghc-${{ env.GHC_VER }}-cabal-${{ env.CABAL_VER }}-
- if: ${{ steps.cache.outputs.cache-hit != 'true' }}
name: Install dependencies
run: |
cabal build --dependencies-only
- name: Build Haddock
run: |
cabal haddock --haddock-html-location='https://hackage.haskell.org/package/$pkg-$version/docs' --haddock-hyperlink-source --haddock-quickjump
- name: Prepare to upload built htmls
run: |
find dist-newstyle -path '*/doc/html/Agda' -type d -exec cp -R {} html \;
find html -name '*.md' -delete
ls -R html
- if: github.ref == 'refs/heads/master'
name: Deploy haddock
uses: peaceiris/actions-gh-pages@v3
with:
destination_dir: docs
force_orphan: true
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: html
strategy:
matrix:
cabal-ver:
- '3.10'
ghc-ver:
- 9.8.1
os:
- ubuntu-22.04
name: Haddock
'on':
pull_request:
paths:
- src/full/**.hs
- Agda.cabal
- .github/workflows/haddock.yml
push:
branches:
- master
- ci-*
- release*
paths:
- src/full/**.hs
- Agda.cabal
- .github/workflows/haddock.yml