Skip to content

Commit

Permalink
Extracted cppcheck to its own file
Browse files Browse the repository at this point in the history
  • Loading branch information
COM8 committed May 2, 2022
1 parent 0b2903a commit d16487d
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 23 deletions.
23 changes: 0 additions & 23 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,29 +31,6 @@ jobs:
ctest-options: -V
configure-options: -DBUILD_SHARED_LIBS=ON

cppcheck:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: true
- name: Update package list
run: sudo apt update
- name: Install cppcheck
run: sudo apt install cppcheck
- name: "[Release g++] Build"
env:
CPR_ENABLE_CPPCHECK: ON
uses: ashutoshvarma/action-cmake-build@master
with:
build-dir: ${{github.workspace}}/build
source-dir: ${{github.workspace}}
cc: gcc
cxx: g++
build-type: Release
run-test: false

ubuntu-20-static-gcc-mbedtls:
runs-on: ubuntu-20.04
steps:
Expand Down
27 changes: 27 additions & 0 deletions .github/workflows/cppcheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: "Test cppcheck"

on: [push]

jobs:
cppcheck:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: true
- name: Update package list
run: sudo apt update
- name: Install cppcheck
run: sudo apt install cppcheck
- name: "[Release g++] Build"
env:
CPR_ENABLE_CPPCHECK: ON
uses: ashutoshvarma/action-cmake-build@master
with:
build-dir: ${{github.workspace}}/build
source-dir: ${{github.workspace}}
cc: gcc
cxx: g++
build-type: Release
run-test: false

0 comments on commit d16487d

Please sign in to comment.