p2pool/.github/workflows/cppcheck.yml

66 lines
1.3 KiB
YAML
Raw Normal View History

2021-09-05 10:51:20 +00:00
name: cppcheck
2022-06-04 11:16:05 +00:00
on: [push, pull_request]
2021-09-05 10:51:20 +00:00
jobs:
cppcheck-ubuntu:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
submodules: true
2022-05-26 16:20:29 +00:00
- name: Checkout cppcheck
uses: actions/checkout@v3
with:
repository: danmar/cppcheck
path: cppcheck-main
- name: Build cppcheck
run: |
cd cppcheck-main
make -j$(nproc) cppcheck
2021-09-05 10:51:20 +00:00
- name: Run cppcheck
run: |
cd cppcheck
./run.sh
2021-09-05 11:09:28 +00:00
cppcheck-windows:
2022-05-26 16:20:29 +00:00
runs-on: windows-latest
2021-09-05 11:09:28 +00:00
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
submodules: true
2022-05-25 17:15:39 +00:00
- name: Checkout cppcheck
uses: actions/checkout@v3
with:
repository: danmar/cppcheck
path: cppcheck-main
- name: Build cppcheck
run: |
cd cppcheck-main
& "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\Msbuild\\Current\\Bin\\amd64\\msbuild.exe" /m /p:Configuration=Release /p:Platform=x64
2021-09-05 11:09:28 +00:00
- 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