commit
2da92c403a
|
@ -0,0 +1,63 @@
|
|||
name: CI
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- master
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
jobs:
|
||||
build:
|
||||
strategy:
|
||||
matrix:
|
||||
os:
|
||||
- macos-10.15
|
||||
- ubuntu-18.04
|
||||
- windows-2019
|
||||
ghc:
|
||||
- 8.8.4
|
||||
cabal:
|
||||
- 3.2.0.0
|
||||
include:
|
||||
- os: ubuntu-18.04
|
||||
ghc: 8.6.5
|
||||
cabal: 3.2.0.0
|
||||
- os: ubuntu-18.04
|
||||
ghc: 8.4.4
|
||||
cabal: 3.2.0.0
|
||||
- os: ubuntu-18.04
|
||||
ghc: 8.2.2
|
||||
cabal: 3.2.0.0
|
||||
- os: ubuntu-18.04
|
||||
ghc: 8.0.2
|
||||
cabal: 3.2.0.0
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- id: setup-haskell
|
||||
uses: actions/setup-haskell@v1
|
||||
with:
|
||||
ghc-version: ${{ matrix.ghc }}
|
||||
cabal-version: ${{ matrix.cabal }}
|
||||
- run: cabal freeze
|
||||
- run: cat cabal.project.freeze
|
||||
- uses: actions/cache@v2
|
||||
with:
|
||||
path: ${{ steps.setup-haskell.outputs.cabal-store }}
|
||||
key: ${{ matrix.os }}-${{ matrix.ghc }}-${{ matrix.cabal }}-${{ hashFiles('cabal.project.freeze') }}
|
||||
restore-keys: |
|
||||
${{ matrix.os }}-${{ matrix.ghc }}-${{ matrix.cabal }}-
|
||||
${{ matrix.os }}-${{ matrix.ghc }}-
|
||||
- run: cabal test --test-show-details direct
|
||||
- run: cabal install --installdir output --install-method copy
|
||||
- run: strip output/brittany*
|
||||
- uses: actions/upload-artifact@v2
|
||||
with:
|
||||
path: output/brittany*
|
||||
name: brittany-${{ matrix.os }}-ghc-${{ matrix.ghc }}-${{ github.sha }}
|
||||
- if: matrix.os == 'ubuntu-18.04' && matrix.ghc == '8.8.4'
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
path: dist-newstyle/sdist/brittany-*.tar.gz
|
||||
name: brittany-${{ github.sha }}.tar.gz
|
||||
- run: cabal check
|
|
@ -0,0 +1,2 @@
|
|||
*
|
||||
!.gitignore
|
|
@ -33,12 +33,12 @@ packages:
|
|||
original:
|
||||
hackage: strict-list-0.1.4
|
||||
- completed:
|
||||
hackage: ghc-exactprint-0.5.8.2@sha256:b078e02ce263db6214f8418c8b6f6be1c8a7ca1499bb2f8936b91b5ed210faa5,7901
|
||||
hackage: ghc-exactprint-0.6.2@sha256:d822f64351e9a8e03d9bad35c8fdf558d30dc396801b396c52b5d5bffaee9108,8368
|
||||
pantry-tree:
|
||||
size: 83871
|
||||
sha256: 1dc1dc7f036dfb8e7642deaeb2845c62731085abc29a1494c22cd6b1b5a18d16
|
||||
size: 85384
|
||||
sha256: d904de9c01e58bfa091d7caa09e0423e9d2932b7b3490c4d83140731f4473877
|
||||
original:
|
||||
hackage: ghc-exactprint-0.5.8.2
|
||||
hackage: ghc-exactprint-0.6.2
|
||||
snapshots:
|
||||
- completed:
|
||||
size: 499461
|
||||
|
|
Loading…
Reference in New Issue