From 6a01ddb76efc9f591c5cbb58d1d36aa0b9d05fde Mon Sep 17 00:00:00 2001 From: Brian Taylor Date: Thu, 5 Dec 2024 13:58:29 -0700 Subject: [PATCH] Adding github actions --- .github/workflows/github-actions.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/github-actions.yml diff --git a/.github/workflows/github-actions.yml b/.github/workflows/github-actions.yml new file mode 100644 index 0000000..22dab34 --- /dev/null +++ b/.github/workflows/github-actions.yml @@ -0,0 +1,27 @@ +on: + push: +jobs: + lint: + name: Lint + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + - run: pip install cpplint + - run: | + cpplint --verbose=0 src/polytools.h + build-and-test: + name: Build and Test + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Build code + run: | + mkdir build + cd build + cmake .. + make + - name: Run tests + run: | + cd build + ./polytools_test \ No newline at end of file