From 878674c262df787b9615179c9482d14ed96e60f2 Mon Sep 17 00:00:00 2001 From: Marc Sune Date: Sun, 25 Aug 2024 12:17:29 +0200 Subject: [PATCH] Tc --- .github/workflows/ci.yaml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/ci.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..453e38d --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,33 @@ +name: ci + +on: + push: + pull_request: + +env: + ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true + +jobs: + make_check: + runs-on: ubuntu-22.04 + steps: + - name: "Checkout sfunnel" + uses: actions/checkout@v4 + with: + path: sfunnel + fetch-depth: 0 + fetch-tags: 1 + + - name: "Install deps..." + run: | + sudo add-apt-repository universe + sudo apt-get update + sudo apt-get install -y clang make iproute2 bridge-utils python3 \ + python3-scapy python3-pip libbpf-dev \ + libelf-dev linux-headers-generic \ + linux-libc-dev llvm + sudo pip3 install pytest + sudo ln -s /usr/include/x86_64-linux-gnu/asm /usr/include/asm + + - name: "Run tests..." + run: cd sfunnel/test && make