Skip to content

Commit 5aa66fd

Browse files
authored
Revert "Revert "Upgrade to GHC 9.10"" (#36)
This reverts commit 7e4453b.
1 parent 7e4453b commit 5aa66fd

File tree

9 files changed

+116
-249
lines changed

9 files changed

+116
-249
lines changed

.devcontainer/compose.yaml

Lines changed: 0 additions & 21 deletions
This file was deleted.

.devcontainer/devcontainer.json

Lines changed: 0 additions & 14 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
jobs:
2+
build:
3+
name: GHC ${{ matrix.ghc }} on ${{ matrix.os }}
4+
runs-on: ${{ matrix.os }}
5+
steps:
6+
- uses: actions/checkout@v4
7+
- run: mkdir artifact
8+
- id: haskell
9+
uses: haskell-actions/setup@v2
10+
with:
11+
ghc-version: ${{ matrix.ghc }}
12+
- run: ghc-pkg list
13+
- run: cabal sdist --output-dir artifact
14+
- run: cabal configure --enable-tests --flags=pedantic --jobs
15+
- run: cat cabal.project.local
16+
- run: cp cabal.project.local artifact
17+
- run: cabal freeze
18+
- run: cat cabal.project.freeze
19+
- run: cp cabal.project.freeze artifact
20+
- run: cabal outdated --v2-freeze-file
21+
- uses: actions/cache@v4
22+
with:
23+
key: ${{ matrix.os }}-${{ matrix.ghc }}-${{ hashFiles('cabal.project.freeze') }}
24+
path: ${{ steps.haskell.outputs.cabal-store }}
25+
restore-keys: ${{ matrix.os }}-${{ matrix.ghc }}-
26+
- run: cabal build --only-download
27+
- run: cabal build --only-dependencies
28+
- run: cabal build
29+
- run: tar --create --file artifact.tar --verbose artifact
30+
- uses: actions/upload-artifact@v4
31+
with:
32+
name: flow-${{ github.sha }}-${{ matrix.os }}-${{ matrix.ghc }}
33+
path: artifact.tar
34+
- run: cabal run -- flow-test-suite --randomize --strict
35+
strategy:
36+
matrix:
37+
include:
38+
- ghc: '9.10'
39+
os: macos-13
40+
- ghc: '9.10'
41+
os: macos-14
42+
- ghc: 9.6
43+
os: ubuntu-22.04
44+
- ghc: 9.8
45+
os: ubuntu-22.04
46+
- ghc: '9.10'
47+
os: ubuntu-22.04
48+
- ghc: '9.10'
49+
os: windows-2022
50+
cabal:
51+
name: Cabal
52+
runs-on: ubuntu-latest
53+
steps:
54+
- uses: actions/checkout@v4
55+
- run: cabal check
56+
gild:
57+
name: Gild
58+
runs-on: ubuntu-latest
59+
steps:
60+
- uses: actions/checkout@v4
61+
- uses: tfausak/cabal-gild-setup-action@v2
62+
- run: cabal-gild --input flow.cabal --mode check
63+
hlint:
64+
name: HLint
65+
runs-on: ubuntu-latest
66+
steps:
67+
- uses: actions/checkout@v4
68+
- uses: haskell-actions/hlint-setup@9e09cc3653fc13702000a35f638a27b064adfbbe
69+
- uses: haskell-actions/hlint-run@v2
70+
with:
71+
fail-on: status
72+
ormolu:
73+
name: Ormolu
74+
runs-on: ubuntu-latest
75+
steps:
76+
- uses: actions/checkout@v4
77+
- uses: haskell-actions/run-ormolu@v15
78+
release:
79+
if: ${{ github.event_name == 'release' }}
80+
name: Release
81+
needs: build
82+
permissions:
83+
contents: write
84+
runs-on: ubuntu-latest
85+
steps:
86+
- uses: actions/download-artifact@v4
87+
with:
88+
name: flow-${{ github.sha }}-ubuntu-22.04-9.10
89+
- run: tar --extract --file artifact.tar --verbose
90+
- uses: softprops/action-gh-release@v2
91+
with:
92+
files: artifact/flow-${{ github.event.release.tag_name }}.tar.gz
93+
- run: cabal upload --publish --username '${{ secrets.HACKAGE_USERNAME }}' --password '${{ secrets.HACKAGE_PASSWORD }}' artifact/flow-${{ github.event.release.tag_name }}.tar.gz
94+
name: CI
95+
on:
96+
pull_request:
97+
branches:
98+
- main
99+
push:
100+
branches:
101+
- main
102+
release:
103+
types:
104+
- created
105+
schedule:
106+
- cron: 0 0 * * 1

.github/workflows/workflow.yaml

Lines changed: 0 additions & 199 deletions
This file was deleted.
File renamed without changes.
File renamed without changes.

README.markdown renamed to README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
# [Flow][]
22

3-
[![Workflow](https://github.com/tfausak/flow/actions/workflows/workflow.yaml/badge.svg)](https://github.com/tfausak/flow/actions/workflows/workflow.yaml)
4-
[![Hackage](https://img.shields.io/hackage/v/flow)](https://hackage.haskell.org/package/flow)
5-
[![Stackage](https://www.stackage.org/package/flow/badge/nightly?label=stackage)](https://www.stackage.org/package/flow)
3+
[![CI](https://github.com/tfausak/flow/actions/workflows/ci.yml/badge.svg)](https://github.com/tfausak/flow/actions/workflows/ci.yml)
4+
[![Hackage](https://badgen.net/hackage/v/flow)](https://hackage.haskell.org/package/flow)
65

76
Write more understandable Haskell.
87

0 commit comments

Comments
 (0)