Initial Commit
This commit is contained in:
14
Dockerfile
Normal file
14
Dockerfile
Normal file
@@ -0,0 +1,14 @@
|
||||
FROM ubuntu:24.04
|
||||
|
||||
WORKDIR /build
|
||||
RUN apt update -y
|
||||
RUN apt install -y cmake curl wget cppcheck
|
||||
|
||||
RUN wget https://apt.llvm.org/llvm.sh && \
|
||||
chmod +x llvm.sh && \
|
||||
./llvm.sh 20
|
||||
|
||||
ADD runchecks.sh /entrypoint.sh
|
||||
COPY . .
|
||||
RUN chmod +x /entrypoint.sh
|
||||
ENTRYPOINT /entrypoint.sh
|
||||
17
action.yml
Normal file
17
action.yml
Normal file
@@ -0,0 +1,17 @@
|
||||
name: CPPCheck
|
||||
author: CSSUDII
|
||||
inputs:
|
||||
path:
|
||||
description: 'Project Directory'
|
||||
required: false
|
||||
default: '.'
|
||||
opts:
|
||||
description: 'Additional cppcheck flags'
|
||||
required: false
|
||||
default: '--enable=warning'
|
||||
runs:
|
||||
using: 'docker'
|
||||
image: 'Dockerfile'
|
||||
args:
|
||||
- ${{ inputs.path }}
|
||||
- ${{ inputs.opts }}
|
||||
3
runchecks.sh
Normal file
3
runchecks.sh
Normal file
@@ -0,0 +1,3 @@
|
||||
#! /bin/bash
|
||||
|
||||
cppcheck "$2" --language=c++ --template="::{severity} file={file},line={line},col={column}::{message} | prbot" "$1"
|
||||
Reference in New Issue
Block a user