p2pool/.github/workflows/cppcheck.yml

54 lines
907 B
YAML
Raw Normal View History

2021-09-05 10:51:20 +00:00
name: cppcheck
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
cppcheck-ubuntu:
runs-on: ubuntu-latest
steps:
- name: Install cppcheck
run: sudo apt update && sudo apt install cppcheck
- name: Checkout repository
uses: actions/checkout@v2
with:
submodules: true
- name: Run cppcheck
run: |
cd cppcheck
./run.sh
2021-09-05 11:09:28 +00:00
cppcheck-windows:
runs-on: windows-latest
steps:
- name: Install cppcheck
run: choco install cppcheck
- name: Checkout repository
uses: actions/checkout@v2
with:
submodules: true
- name: Setup cmake
uses: lukka/get-cmake@latest
- name: cmake p2pool
run: |
mkdir build
cd build
2022-02-21 15:59:32 +00:00
cmake .. -G "Visual Studio 17 2022"
2021-09-05 11:09:28 +00:00
- name: Run cppcheck
run: |
cd cppcheck
./run.cmd