Skip to content

Commit

Permalink
Revert "Revert "Upgrade to GHC 9.10"" (#36)
Browse files Browse the repository at this point in the history
This reverts commit 7e4453b.
  • Loading branch information
tfausak committed May 18, 2024
1 parent 7e4453b commit 5aa66fd
Show file tree
Hide file tree
Showing 9 changed files with 116 additions and 249 deletions.
21 changes: 0 additions & 21 deletions .devcontainer/compose.yaml

This file was deleted.

14 changes: 0 additions & 14 deletions .devcontainer/devcontainer.json

This file was deleted.

File renamed without changes.
106 changes: 106 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
jobs:
build:
name: GHC ${{ matrix.ghc }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- run: mkdir artifact
- id: haskell
uses: haskell-actions/setup@v2
with:
ghc-version: ${{ matrix.ghc }}
- run: ghc-pkg list
- run: cabal sdist --output-dir artifact
- run: cabal configure --enable-tests --flags=pedantic --jobs
- run: cat cabal.project.local
- run: cp cabal.project.local artifact
- run: cabal freeze
- run: cat cabal.project.freeze
- run: cp cabal.project.freeze artifact
- run: cabal outdated --v2-freeze-file
- uses: actions/cache@v4
with:
key: ${{ matrix.os }}-${{ matrix.ghc }}-${{ hashFiles('cabal.project.freeze') }}
path: ${{ steps.haskell.outputs.cabal-store }}
restore-keys: ${{ matrix.os }}-${{ matrix.ghc }}-
- run: cabal build --only-download
- run: cabal build --only-dependencies
- run: cabal build
- run: tar --create --file artifact.tar --verbose artifact
- uses: actions/upload-artifact@v4
with:
name: flow-${{ github.sha }}-${{ matrix.os }}-${{ matrix.ghc }}
path: artifact.tar
- run: cabal run -- flow-test-suite --randomize --strict
strategy:
matrix:
include:
- ghc: '9.10'
os: macos-13
- ghc: '9.10'
os: macos-14
- ghc: 9.6
os: ubuntu-22.04
- ghc: 9.8
os: ubuntu-22.04
- ghc: '9.10'
os: ubuntu-22.04
- ghc: '9.10'
os: windows-2022
cabal:
name: Cabal
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: cabal check
gild:
name: Gild
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: tfausak/cabal-gild-setup-action@v2
- run: cabal-gild --input flow.cabal --mode check
hlint:
name: HLint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: haskell-actions/hlint-setup@9e09cc3653fc13702000a35f638a27b064adfbbe
- uses: haskell-actions/hlint-run@v2
with:
fail-on: status
ormolu:
name: Ormolu
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: haskell-actions/run-ormolu@v15
release:
if: ${{ github.event_name == 'release' }}
name: Release
needs: build
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4
with:
name: flow-${{ github.sha }}-ubuntu-22.04-9.10
- run: tar --extract --file artifact.tar --verbose
- uses: softprops/action-gh-release@v2
with:
files: artifact/flow-${{ github.event.release.tag_name }}.tar.gz
- run: cabal upload --publish --username '${{ secrets.HACKAGE_USERNAME }}' --password '${{ secrets.HACKAGE_PASSWORD }}' artifact/flow-${{ github.event.release.tag_name }}.tar.gz
name: CI
on:
pull_request:
branches:
- main
push:
branches:
- main
release:
types:
- created
schedule:
- cron: 0 0 * * 1
199 changes: 0 additions & 199 deletions .github/workflows/workflow.yaml

This file was deleted.

File renamed without changes.
File renamed without changes.
5 changes: 2 additions & 3 deletions README.markdown → README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# [Flow][]

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

Write more understandable Haskell.

Expand Down
Loading

0 comments on commit 5aa66fd

Please sign in to comment.