Skip to content

Commit 13f1db7

Browse files
authored
Cabal GitHub action for GHC 9.0, 9.2, 9.4 (#448)
1 parent 103554d commit 13f1db7

File tree

2 files changed

+37
-1
lines changed

2 files changed

+37
-1
lines changed

.github/workflows/cabal.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Cabal
2+
3+
on: ['pull_request', 'push']
4+
5+
jobs:
6+
build:
7+
name: Build on ${{ matrix.os }} GHC ${{ matrix.ghc }}
8+
runs-on: ${{ matrix.os }}
9+
strategy:
10+
matrix:
11+
os: [ubuntu-latest, macOS-latest]
12+
ghc: ["9.0.2", "9.2.7", "9.4.4"]
13+
fail-fast: false
14+
15+
steps:
16+
- uses: actions/checkout@v2
17+
18+
- uses: haskell/actions/setup@v2
19+
name: Setup Haskell Cabal
20+
with:
21+
ghc-version: ${{ matrix.ghc }}
22+
23+
- uses: actions/cache@v2
24+
name: Cache ~/.cabal
25+
with:
26+
path: ~/.cabal
27+
key: "${{ runner.os }}-${{ matrix.ghc }}-v9-${{ hashFiles('stylish-haskell.cabal') }}"
28+
29+
- name: Build
30+
run: cabal build --enable-tests
31+
id: build
32+
33+
- name: Test
34+
run: cabal test
35+

README.markdown

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

33
<img src="./assets/Logo/SVG/RoundedLogo.svg" width="100px">
44

5-
![Build Status](https://github.com/jaspervdj/stylish-haskell/workflows/CI/badge.svg)
5+
![Stack Build Status](https://github.com/jaspervdj/stylish-haskell/workflows/CI/badge.svg)
6+
![Cabal Build Status](https://github.com/jaspervdj/stylish-haskell/workflows/Cabal/badge.svg)
67

78
## Introduction
89

0 commit comments

Comments
 (0)