-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #84 from ahans/feature/gh-actions-ci
Add GH Actions CI config
- Loading branch information
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
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
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 }} |