Skip to content

Commit

Permalink
Merge pull request #149 from chenrui333/add-ci
Browse files Browse the repository at this point in the history
feat: add ci for linux and macos build
  • Loading branch information
blechschmidt authored Mar 11, 2024
2 parents 658810a + fc79b77 commit bad45b8
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: main

on: [push, pull_request]

jobs:
build:
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
os: [macos-latest, ubuntu-latest]

steps:
- uses: actions/checkout@v4

- name: Install system dependencies (Linux)
if: runner.os == 'Linux'
run: sudo apt-get install libpcap-dev

- name: Run CMake
run: cmake -S . -B build -D CMAKE_BUILD_TYPE=Debug

- name: build
run: cmake --build build

0 comments on commit bad45b8

Please sign in to comment.