Skip to content

Commit

Permalink
Merge pull request #84 from ahans/feature/gh-actions-ci
Browse files Browse the repository at this point in the history
Add GH Actions CI config
  • Loading branch information
nhorman committed Feb 19, 2024
2 parents 853457b + 8c0d48a commit b0b1b45
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: CI Build

on:
pull_request:
push:
branches: [master]

# Allow manual trigger from Actions tab
workflow_dispatch:

jobs:
build_and_test:
name: Configure, build, and test

strategy:
matrix:
platform:
- ubuntu-20.04
- ubuntu-22.04
compiler:
- gcc
- clang

runs-on: ${{ matrix.platform }}

steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: sudo apt-get install -y binutils-dev libreadline-dev libnl-3-dev libnl-genl-3-dev libpcap-dev
- name: Configure and build
run: ./autogen.sh && ./configure && make
env:
CC: ${{ matrix.compiler }}
- name: Run tests
run: make check
env:
CC: ${{ matrix.compiler }}

0 comments on commit b0b1b45

Please sign in to comment.