Skip to content

Commit

Permalink
CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
robrix committed Oct 4, 2024
1 parent 75b3942 commit 62493cb
Showing 1 changed file with 16 additions and 12 deletions.
28 changes: 16 additions & 12 deletions .github/workflows/haskell.yml → .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,41 +1,45 @@
name: Haskell CI

on: [pull_request]
on:
pull_request:
branches:
- "**"
push:
branches:
- "main"

jobs:
build:
name: ghc ${{ matrix.ghc }}
runs-on: ubuntu-16.04
runs-on: ubuntu-latest
strategy:
matrix:
ghc: ["8.2.2", "8.4.4", "8.6.5", "8.8.3", "8.10.1"]
cabal: ["latest"]
ghc: ["8.2", "8.4", "8.6", "8.8", "8.10", "9.0", "9.2", "9.4", "9.6", "9.8", "9.10"]

steps:
- uses: actions/checkout@v2
if: github.event.action == 'opened' || github.event.action == 'synchronize' || github.event.ref == 'refs/heads/master'
if: github.event.action == 'opened' || github.event.action == 'synchronize' || github.event.ref == 'refs/heads/main'

- uses: actions/setup[email protected]
- uses: haskell-actions/setup@v2
name: Setup Haskell
with:
ghc-version: ${{ matrix.ghc }}
cabal-version: ${{ matrix.cabal }}

- uses: actions/cache@v1
- uses: actions/cache@v2
name: Cache ~/.cabal/packages
with:
path: ~/.cabal/packages
key: ${{ runner.os }}-${{ matrix.ghc }}-cabal-packages
- uses: actions/cache@v1
- uses: actions/cache@v2
name: Cache ~/.cabal/store
with:
path: ~/.cabal/store
key: ${{ runner.os }}-${{ matrix.ghc }}-cabal-store
- uses: actions/cache@v1
- uses: actions/cache@v2
name: Cache dist-newstyle
with:
path: dist-newstyle
key: ${{ runner.os }}-${{ matrix.ghc }}-fused-effects-random-dist
key: ${{ runner.os }}-${{ matrix.ghc }}-repo-dist

- name: Install dependencies
run: |
Expand All @@ -46,7 +50,7 @@ jobs:
- name: Build & test
run: |
cabal v2-build --project-file=cabal.project.ci
# cabal v2-run --project-file=cabal.project.ci test
# cabal v2-run --project-file=cabal.project.ci fresnel:test
cabal v2-haddock --project-file=cabal.project.ci
cabal v2-sdist --project-file=cabal.project.ci
cabal check

0 comments on commit 62493cb

Please sign in to comment.