-
Notifications
You must be signed in to change notification settings - Fork 744
39 lines (28 loc) · 1.01 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
name: ci
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-20.04, ubuntu-22.04]
crypto: [auto]
include:
- crypto: nettle
os: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: "setup linux build environment"
if: ${{ startsWith(matrix.os, 'ubuntu') }}
run: sudo apt install -y protobuf-compiler libprotobuf-dev libutempter-dev autoconf automake nettle-dev
- name: "setup macos build environment"
if: ${{ startsWith(matrix.os, 'macos') }}
run: brew install protobuf automake
- name: "generate build scripts"
run: ./autogen.sh
- name: ${{ format('configure (crypto {0})', matrix.crypto) }}
run: ./configure --enable-compile-warnings=error --enable-examples ${{ (matrix.crypto != 'auto' && format('--with-crypto-library={0}', matrix.crypto)) || '' }}
- name: "build"
run: make V=1
- name: "test"
run: make V=1 check