Skip to content

Commit ea7e3da

Browse files
committed
Use github CI
1 parent e60969e commit ea7e3da

File tree

3 files changed

+52
-14
lines changed

3 files changed

+52
-14
lines changed

.github/workflows/test.yaml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Haskell CI
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build-cabal:
11+
12+
runs-on: ${{ matrix.os }}
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
os: [ubuntu-latest, macOS-latest, windows-latest]
17+
ghc: ['8.0.2', '8.2.2', '8.4.4', '8.6.5', '8.8.4', '8.10.7', '9.0.1', '9.2.1']
18+
cabal: ['3.6.2.0']
19+
20+
steps:
21+
- uses: actions/checkout@v2
22+
23+
- if: matrix.os == 'windows-latest'
24+
name: Install ghcup on windows
25+
run: Set-ExecutionPolicy Bypass -Scope Process -Force;[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072;Invoke-Command -ScriptBlock ([ScriptBlock]::Create((Invoke-WebRequest https://www.haskell.org/ghcup/sh/bootstrap-haskell.ps1 -UseBasicParsing))) -ArgumentList $false,$true,$true,$false,$false,$false,$false,"C:\"
26+
27+
- if: matrix.os == 'windows-latest'
28+
name: Add ghcup to PATH
29+
run: echo "/c/ghcup/bin" >> $GITHUB_PATH
30+
shell: bash
31+
32+
- if: matrix.os != 'windows-latest'
33+
name: Install ghcup on non-windows
34+
run: curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | BOOTSTRAP_HASKELL_NONINTERACTIVE=1 BOOTSTRAP_HASKELL_MINIMAL=1 sh
35+
36+
- name: Install ghc/cabal
37+
run: |
38+
ghcup install ghc ${{ matrix.ghc }}
39+
ghcup install cabal ${{ matrix.cabal }}
40+
shell: bash
41+
42+
- name: Update cabal index
43+
run: cabal update
44+
shell: bash
45+
46+
- name: Build
47+
run: cabal build --enable-tests --enable-benchmarks
48+
shell: bash
49+
50+
- name: Run tests
51+
run: cabal test
52+
shell: bash

.travis.yml

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

travis.hs

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

0 commit comments

Comments
 (0)