| 1 | name: C/C++ CI |
| 2 | |
| 3 | on: |
| 4 | push: |
| 5 | branches: [ "arping-2.x" ] |
| 6 | pull_request: |
| 7 | branches: [ "arping-2.x" ] |
| 8 | |
| 9 | jobs: |
| 10 | build: |
| 11 | |
| 12 | runs-on: ubuntu-latest |
| 13 | |
| 14 | steps: |
| 15 | - uses: actions/checkout@v6 |
| 16 | - name: apt-get update |
| 17 | run: sudo apt-get update |
| 18 | - name: Required dependencies |
| 19 | run: sudo apt-get install -y libnet1-dev libpcap-dev automake autoconf check tcpdump openssh-server |
| 20 | - name: bootstrap |
| 21 | run: ./bootstrap.sh |
| 22 | - name: configure |
| 23 | run: ./configure |
| 24 | - name: make |
| 25 | run: make |
| 26 | - name: make check |
| 27 | run: make check |
| 28 | - name: make distcheck |
| 29 | run: make distcheck |
| 30 | - name: Install optional dependencies |
| 31 | run: sudo apt-get install -y libcap-dev libseccomp-dev |
| 32 | - name: clean |
| 33 | run: make distclean |
| 34 | - name: configure with optional deps |
| 35 | run: ./configure |
| 36 | - name: make with optional deps |
| 37 | run: make |
| 38 | - name: make check with optional deps |
| 39 | run: make check |
| 40 | - name: make distcheck with optional deps |
| 41 | run: make distcheck |
| 42 | - name: end to end tests |
| 43 | run: sudo bash -x ./tests/run 10 |