| 1 |
name: CI Build |
| 2 |
|
| 3 |
on: |
| 4 |
pull_request: |
| 5 |
push: |
| 6 |
branches: [master] |
| 7 |
|
| 8 |
|
| 9 |
workflow_dispatch: |
| 10 |
|
| 11 |
jobs: |
| 12 |
build_and_test: |
| 13 |
name: Configure, build, and test |
| 14 |
|
| 15 |
strategy: |
| 16 |
matrix: |
| 17 |
platform: |
| 18 |
- ubuntu-20.04 |
| 19 |
- ubuntu-22.04 |
| 20 |
compiler: |
| 21 |
- gcc |
| 22 |
- clang |
| 23 |
|
| 24 |
runs-on: ${{ matrix.platform }} |
| 25 |
|
| 26 |
steps: |
| 27 |
- uses: actions/checkout@v3 |
| 28 |
- name: Install dependencies |
| 29 |
run: sudo apt-get install -y binutils-dev libreadline-dev libnl-3-dev libnl-genl-3-dev libpcap-dev |
| 30 |
- name: Configure and build |
| 31 |
run: ./autogen.sh && ./configure && make |
| 32 |
env: |
| 33 |
CC: ${{ matrix.compiler }} |
| 34 |
- name: Run tests |
| 35 |
run: make check |
| 36 |
env: |
| 37 |
CC: ${{ matrix.compiler }} |