Skip to content

Commit 6632eaf

Browse files
authored
Merge pull request #23 from peterbecich/basic-github-actions
basic GitHub Actions
2 parents 9b5ef85 + f374274 commit 6632eaf

File tree

2 files changed

+71
-0
lines changed

2 files changed

+71
-0
lines changed

.github/workflows/ci.yml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# modified from https://github.com/jgm/pandoc/blob/master/.github/workflows/ci.yml
2+
name: CI
3+
4+
on:
5+
push:
6+
branches:
7+
- '**'
8+
paths-ignore: []
9+
pull_request:
10+
paths-ignore: []
11+
12+
jobs:
13+
linux:
14+
15+
runs-on: ubuntu-20.04
16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
versions:
20+
- ghc: '8.6.5'
21+
cabal: '3.6'
22+
- ghc: '8.8.4'
23+
cabal: '3.6'
24+
- ghc: '8.10.7'
25+
cabal: '3.6'
26+
- ghc: '9.0.2'
27+
cabal: '3.6'
28+
29+
steps:
30+
- uses: actions/checkout@v2
31+
32+
# need to install older cabal/ghc versions from ppa repository
33+
34+
- name: Install recent cabal/ghc
35+
uses: haskell/actions/setup@v1
36+
with:
37+
ghc-version: ${{ matrix.versions.ghc }}
38+
cabal-version: ${{ matrix.versions.cabal }}
39+
40+
# declare/restore cached things
41+
# caching doesn't work for scheduled runs yet
42+
# https://github.com/actions/cache/issues/63
43+
44+
- name: Cache cabal global package db
45+
id: cabal-global
46+
uses: actions/cache@v2
47+
with:
48+
path: |
49+
~/.cabal
50+
key: ${{ runner.os }}-${{ matrix.versions.ghc }}-${{ matrix.versions.cabal }}-cabal-global-${{ hashFiles('cabal.project') }}
51+
52+
- name: Cache cabal work
53+
id: cabal-local
54+
uses: actions/cache@v2
55+
with:
56+
path: |
57+
dist-newstyle
58+
key: ${{ runner.os }}-${{ matrix.versions.ghc }}-${{ matrix.versions.cabal }}-cabal-local
59+
60+
- name: Install dependencies
61+
run: |
62+
cabal update
63+
cabal build all --dependencies-only --enable-tests --disable-optimization
64+
- name: Build
65+
run: |
66+
cabal build all --enable-tests --disable-optimization 2>&1 | tee build.log
67+
- name: Test
68+
run: |
69+
cabal test all --disable-optimization

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
[![Build status](https://github.com/snapframework/io-streams-haproxy/actions/workflows/ci.yml/badge.svg)](https://github.com/snapframework/io-streams-haproxy/actions/workflows/ci.yml)
2+
13
HAProxy proxy protocol v1.5 support for io-streams.
24

35
See the protocol specification:

0 commit comments

Comments
 (0)