Skip to content

Commit

Permalink
Switch to GitHub Actions for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
lexi-lambda committed Jan 7, 2022
1 parent 0d1346b commit ffce9c1
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 69 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: build
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ghc: ['8.6.5', '8.8.4', '8.10.7', '9.0.2', '9.2.1']
name: Build with GHC ${{ matrix.ghc }}
steps:
- uses: actions/checkout@v2
- name: Setup Haskell
uses: haskell/actions/setup@v1
with:
ghc-version: ${{ matrix.ghc }}

- run: cp cabal.project.ci cabal.project.local
- run: cabal v2-update
- run: cabal v2-freeze
- uses: actions/cache@v2
with:
path: ~/.cabal/store
key: ${{ runner.os }}-${{ matrix.ghc }}-${{ hashFiles('cabal.project.freeze') }}
restore-keys: |
${{ runner.os }}-${{ matrix.ghc }}-
- run: cabal v2-build
- run: cabal v2-test
- run: cabal v2-sdist
58 changes: 0 additions & 58 deletions .travis.yml

This file was deleted.

7 changes: 0 additions & 7 deletions cabal.project
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
packages: .
jobs: $ncpus

package *
haddock-html: true
haddock-hoogle: true
haddock-hyperlink-source: true
haddock-quickjump: true

package freer-simple
ghc-options: -j
haddock-options: "--optghc=-Wno-unused-imports"
5 changes: 5 additions & 0 deletions cabal.project.ci
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package freer-simple
ghc-options: -Werror
documentation: true
benchmarks: true
tests: true
8 changes: 4 additions & 4 deletions freer-simple.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ license-file: LICENSE
homepage: https://github.com/lexi-lambda/freer-simple
bug-reports: https://github.com/lexi-lambda/freer-simple/issues

source-repository head
type: git
location: https://github.com/lexi-lambda/freer-simple

extra-source-files:
CHANGELOG.md
README.md

source-repository head
type: git
location: https://github.com/lexi-lambda/freer-simple

common common
ghc-options:
-Wall
Expand Down

0 comments on commit ffce9c1

Please sign in to comment.