Skip to content

Add build workflow

Add build workflow #1

Workflow file for this run

name: build
on:
push:
pull_request:
permissions:
contents: read
jobs:
build:
name: GHC ${{ matrix.ghc-version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
ghc-version: ['9.2']
steps:
- uses: actions/checkout@v3
- name: Set up GHC ${{ matrix.ghc-version }}
uses: haskell-actions/setup@v2
id: setup
with:
ghc-version: ${{ matrix.ghc-version }}
cabal-version: 'latest'
cabal-update: true
enable-stack: true
stack-version: 'latest'
- name: Restore cached dependencies
uses: actions/cache/restore@v3
id: cache
with:
env:
key: ${{ runner.os }}-ghc-${{ steps.setup.outputs.ghc-version }}-stack-${{ steps.setup.outputs.stack-version }}

Check failure on line 37 in .github/workflows/build.yaml

View workflow run for this annotation

GitHub Actions / build

Invalid workflow file

The workflow is not valid. .github/workflows/build.yaml (Line: 37, Col: 13): A mapping was not expected
path: |
~/.stack
.stack-work
key: ${{ env.key}}-plan-${{ hashFiles('stack.yaml', 'package.yaml') }}
restore-keys: ${{ env.key }}-
- name: Build
run: stack build
- name: Build documentation
run: stack haddock
- name: Package
run: stack sdist