-
Notifications
You must be signed in to change notification settings - Fork 7
/
ci.yml
41 lines (36 loc) · 1.13 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Haskell CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
# runs-on: ubuntu-20.04
runs-on: self-hosted
steps:
- uses: actions/checkout@v2
- uses: haskell/actions/setup@v1
with:
ghc-version: '8.10.4'
enable-stack: true
stack-version: 'latest'
- name: Cache
uses: actions/cache@v1
env:
cache-name: cache-stack
with:
path: ~/.stack
key:
${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/stack.yaml') }}-${{ hashFiles('**/*.cabal') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/stack.yaml') }}
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install dependencies
run:
sudo apt-get install rsync libc-dev libz-dev libexpat1-dev liblmdb-dev liblzma-dev libgmp-dev
- name: Compile and test
run:
stack upgrade && stack --system-ghc --no-install-ghc test rpki-prover:lib rpki-prover:test:rpki-prover-test