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 ab52628
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-14, macOS-15]
compiler: [gcc, clang]
exclude:
- os: macOS-14
compiler: gcc
- os: macOS-15
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 ab52628

Please sign in to comment.