forked from chaos/diod
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (34 loc) · 861 Bytes
/
main.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
name: ci
on: [ pull_request, push ]
jobs:
build:
runs-on: ${{matrix.os}}
strategy:
matrix:
cc: [gcc, clang]
os: [ubuntu-latest, ubuntu-18.04]
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
libpopt-dev ncurses-dev automake autoconf pkgconf \
lua5.3 liblua5.3-dev libmunge-dev libwrap0-dev libcap-dev \
libattr1-dev ${{matrix.cc}}
- name: Display configuration
run: |
echo "C compiler:"
${CC} --version
env:
CC: ${{matrix.cc}}
- name: autogen
run: ./autogen.sh
- name: configure
run: ./configure
- name: make
run: make
- name: make check
run: make check
- name: make distcheck
run: make distcheck