Build CI #66
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build CI | |
on: | |
push: | |
pull_request: | |
schedule: | |
# build the master branch every Monday morning | |
- cron: '57 5 * * 1' | |
workflow_dispatch: | |
jobs: | |
build-latest: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
compiler: [cc, clang, gcc-12] | |
os: [ubuntu-latest, macos-latest] | |
exclude: | |
- os: macos-latest | |
compiler: cc | |
- os: macos-latest | |
compiler: gcc-12 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Run autotools | |
run: | | |
autoheader | |
autoconf | |
- name: Compiler version | |
run: $CC -v | |
env: | |
CC: ${{ matrix.compiler }} | |
- name: configure | |
run: ./configure | |
env: | |
CC: ${{ matrix.compiler }} | |
- name: make | |
run: make -k | |
- name: Run unit tests | |
run: ./bgpdump -T | |
- name: Regression tests | |
run: ./test.sh |