Skip to content

Commit

Permalink
Migrate to github workflows
Browse files Browse the repository at this point in the history
Remove circle-ci and gitlab-ci and use github workflows
  • Loading branch information
psachs committed Apr 19, 2024
1 parent a0dd694 commit 4cb4531
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 117 deletions.
84 changes: 0 additions & 84 deletions .circleci/config.yml

This file was deleted.

23 changes: 23 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: syntax, static code analyis and build check for c drivers

on:
pull_request:
branches:
- master
push:
branches:
- master

jobs:
code-analysis:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: awalsh128/cache-apt-pkgs-action@v1
with:
packages: cppcheck clang-format
version: 1.0
- name: clang-format syntax-check
run: find . -type f -iregex ".*\.\(c\|h\|cpp\|ino\)" -exec clang-format -i -style=file {} \; && git diff --exit-code
- name: cppcheck static code analyis
run: cppcheck --std=c89 --language=c --error-exitcode=1 --enable=warning,style,performance,portability --suppress=unreadVariable -i embedded-common/ -i release/ .
33 changes: 0 additions & 33 deletions .gitlab-ci.yml

This file was deleted.

0 comments on commit 4cb4531

Please sign in to comment.