Skip to content

Commit

Permalink
initial commit of github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Lundin committed Nov 17, 2024
1 parent 70343ab commit 06e048d
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
37 changes: 37 additions & 0 deletions .github/workflows/github-actions-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---

name: Build
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false

matrix:
os: [ ubuntu-latest, ubuntu-22.04 ] # , macOS-15, macOS-15-large ]
compiler: [ gcc, clang ]
# exclude:
# - os: macOS-15
# compiler: gcc
# - os: macOS-15-large
# compiler: gcc

steps:
- uses: actions/checkout@v4

- name: Install libpcap-dev
if: contains(matrix.os, 'ubuntu')
run: sudo apt install -y libpcap-dev

- name: Compile using ${{ matrix.compiler }}
run: make CC=${{ matrix.compiler }}

- name: Install
run: sudo make install

- name: Execute
run: /usr/local/sbin/ifpstat -v

...
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ MANDIR=/usr/local/share/man/man1

VERSION=1.0.2

CC=cc
CC?=cc
CFLAGS=-O2 -W -Wall -Wno-unused-parameter
LIBS=-lpcap

Expand Down

0 comments on commit 06e048d

Please sign in to comment.