2023-02-04 00:59:33 +00:00
|
|
|
name: Build CI
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ master ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ master ]
|
|
|
|
schedule:
|
|
|
|
# build the main branch every Monday morning
|
|
|
|
- cron: '37 9 * * 1'
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
compiler: [cc, clang, clang-13, gcc-10]
|
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
|
|
|
uses: actions/checkout@v3
|
2023-02-04 23:50:29 +00:00
|
|
|
- name: ./autogen.sh
|
2023-02-04 00:59:33 +00:00
|
|
|
run: ./autogen.sh
|
|
|
|
- name: Compiler version
|
|
|
|
run: $CC -v
|
|
|
|
env:
|
|
|
|
CC: ${{ matrix.compiler }}
|
|
|
|
- name: Install dependencies
|
2023-02-06 01:51:00 +00:00
|
|
|
run: sudo apt install autoconf libssl-dev libpcap-dev libnet1-dev libjson-c-dev
|
2023-02-04 00:59:33 +00:00
|
|
|
- name: ./configure
|
|
|
|
run: ./configure
|
|
|
|
env:
|
|
|
|
CC: ${{ matrix.compiler }}
|
|
|
|
- name: make
|
|
|
|
run: make
|