Skip to content

Commit

Permalink
adding README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Ximaz committed May 4, 2024
1 parent 65533b4 commit aae4378
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Valgrind Checker Action

A GitHub action allowing you to check for memory leaks on your binaries, libraries and unit tests.

# Usage

Here is how you may use the action :

```yml
name: Valgrind Tester

on:
- push

jobs:
check-memory-leaks:
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: actions/[email protected]

- name: "Compile program"
run: gcc -g src/*.c -o program

- name: "Valgrind Checks"
uses: Ximaz/valgrind-action
with:
binary_path: "./program"
binary_args: "--arg1 value1 --arg2 value2"
```
# Customization
`binary_args`: The args to pass to the binary when checked (string format)

`ld_library_path`: Custom library path (for dymanic locally-compiled libraries)

`track_file_descriptors`: Whether or not to track file descriptors (default: `true`)

`treat_error_as_warning`: The workflow won't exit as error, and error annotations will be replaced by warnings (default: `false`)

`valgrind_suppressions`: String containing Valgrind suppressions (will be put inside a suppressions file)

`verbose`: Asking Valgrind to be verbose (default: `false`)

0 comments on commit aae4378

Please sign in to comment.