From 54e4e4b0f4e09a946fec20cb9541a96c585e8f52 Mon Sep 17 00:00:00 2001 From: Matias Fontanini Date: Sat, 19 Feb 2022 17:01:37 -0800 Subject: [PATCH] Add github actions for ubuntu (#467) --- .github/workflows/tests.yaml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/tests.yaml diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml new file mode 100644 index 0000000..127d9d5 --- /dev/null +++ b/.github/workflows/tests.yaml @@ -0,0 +1,22 @@ +name: Tests +on: [push] +jobs: + Ubuntu-Tests: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Install libpcap + run: sudo apt-get install -y libpcap-dev + + - name: Initialize submodules + run: git submodule init && git submodule update + + - name: Initialize build system + run: mkdir build && cd build && cmake .. + + - name: Build tests + run: cmake --build build --target tests + + - name: Run tests + run: ctest build