Skip to content

Bump JamesIves/github-pages-deploy-action from 4.6.0 to 4.6.3 #32

Bump JamesIves/github-pages-deploy-action from 4.6.0 to 4.6.3

Bump JamesIves/github-pages-deploy-action from 4.6.0 to 4.6.3 #32

Workflow file for this run

name: build
on:
push:
branches:
- main
paths:
- ".github/workflows/**"
- "bench/**"
- "exe/**"
- "src/**"
- "test/**"
- "package.yaml"
- "stack*.yaml"
pull_request:
branches:
- main
jobs:
build:
strategy:
matrix:
resolver:
- stack
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Haskell
id: "install-haskell"
uses: haskell/actions/setup@v1
with:
ghc-version: "8.10.7"
enable-stack: true
stack-version: "latest"
- name: Cache .stack
id: cache-stack
uses: actions/cache@v4
with:
path: ${{ steps.install-haskell.outputs.stack-root }}
key: ${{ runner.os }}-${{ matrix.resolver }}-${{ hashFiles(format('{0}.yaml', matrix.resolver)) }}
restore-keys: |
${{ runner.os }}-${{ matrix.resolver }}-
${{ runner.os }}-
- name: Install dependencies
run: |
stack --system-ghc --stack-yaml=${{ matrix.resolver }}.yaml --no-terminal build --only-dependencies --fast --test --haddock
- name: Build
id: build
run: |
stack --system-ghc --stack-yaml=${{ matrix.resolver }}.yaml --no-terminal build --fast --test --no-run-tests --haddock
- name: Deploy documentation
if: ${{ github.ref == 'refs/heads/main' }}
uses: JamesIves/[email protected]
with:
branch: haddock
folder: docs
### uncomment the following lines in order to run the tests every time you
### push to your repository
# - name: Test
# id: test
# run: |
# stack --system-ghc --stack-yaml=${{ matrix.resolver }}.yaml --no-terminal build --fast --test