From f926cd4a81a85d8315bb6968603fcc96e3b6d382 Mon Sep 17 00:00:00 2001 From: "jonath.re@gmail.com" Date: Fri, 22 Jul 2022 18:00:05 +0200 Subject: [PATCH] Add a CI workflow to build the code and run tests Example output here: https://github.com/jonathangjertsen/nanoMODBUS/runs/7471676743 I'll try to build the Arduino examples as well, but this is a start --- .github/workflows/ci.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..07cf8b6 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,15 @@ +name: ci +on: [push] +jobs: + Build: + runs-on: ubuntu-latest + steps: + - name: Clone repo + uses: actions/checkout@v2 + - name: build + run: | + mkdir build + cd build + cmake .. + make + ./nanomodbus_tests