Initial Commit

This commit is contained in:
2025-06-04 13:04:13 +12:00
commit 009a093326
3 changed files with 34 additions and 0 deletions

14
Dockerfile Normal file
View 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
View 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
View File

@@ -0,0 +1,3 @@
#! /bin/bash
cppcheck "$2" --language=c++ --template="::{severity} file={file},line={line},col={column}::{message} | prbot" "$1"