Skip to content

Commit

Permalink
Use more standard haskell-actions setup (rather than neil)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomjaguarpaw committed Dec 23, 2024
1 parent d9fbd91 commit 080c516
Showing 1 changed file with 45 additions and 13 deletions.
58 changes: 45 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,32 +5,64 @@ on:
- cron: '0 3 * * 6' # 3am Saturday
workflow_dispatch:
jobs:
test:
build:
name: ghc ${{ matrix.ghc }} ${{ matrix.os }}
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
ghc: ['9.6', '9.4', '9.2', '9.0', '8.10', '8.8']
ghc:
- "8.6.5"
- "8.8.3"
- "8.10.7"
- "9.0.2"
- "9.2.4"
- "9.4.7"
- "9.6.3"
- "9.8.1"
- "9.10.1"
include:
- os: windows-latest
- os: macOS-latest

steps:
- run: git config --global core.autocrlf false
- uses: actions/checkout@v2
- uses: haskell-actions/[email protected]
id: setup-haskell
- uses: actions/checkout@v4

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

- name: Configure
run: |
cabal configure --enable-tests --enable-benchmarks --enable-documentation --test-show-details=direct --write-ghc-environment-files=always
- name: Freeze
run: |
cabal freeze
- uses: actions/cache@v3
name: Cache ~/.cabal/3tore
with:
path: ${{ steps.setup-haskell.outputs.cabal-store }}
key: ${{ runner.os }}-${{ matrix.ghc }}-${{ hashFiles('cabal.project.freeze') }}
restore-keys: ${{ runner.os }}-${{ matrix.ghc }}-
- uses: tomjaguarpaw/neil@tag-ac7e72e
with:
github-user: tomjaguarpaw
branch: tag-4459934

- name: Install dependencies
run: |
cabal build all --only-dependencies
- name: Build
run: |
cabal build all
- name: Test
run: |
cabal test all
# - name: Documentation
# run: |
# cabal haddock all

0 comments on commit 080c516

Please sign in to comment.