Skip to content

Commit

Permalink
Adding github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
flybrianfly committed Dec 5, 2024
1 parent 4cf2687 commit 6a01ddb
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/github-actions.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 6a01ddb

Please sign in to comment.