Skip to content

Commit c472322

Browse files
authored
Add GitHub actions (cppcheck-opensource#2535)
* Initial version of GitHub actions script: compile cppcheck and "make check" on ubuntu
1 parent 1b66820 commit c472322

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

.github/workflows/main.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Syntax reference https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions
2+
# Environment reference https://help.github.com/en/actions/reference/virtual-environments-for-github-hosted-runners
3+
name: CI
4+
5+
on: [push, pull_request]
6+
7+
jobs:
8+
build:
9+
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v2
14+
- name: Build
15+
run: |
16+
make -j2
17+
18+
- name: Test
19+
run: |
20+
make -j2 check

0 commit comments

Comments
 (0)