From b7e837aef53e310889bcd80cb6b9fa01d8f95a36 Mon Sep 17 00:00:00 2001 From: Imbus <> Date: Thu, 2 May 2024 02:16:24 +0200 Subject: [PATCH 1/2] Valgrind & cppcheck targets --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index 38a94b5..1a990a8 100644 --- a/Makefile +++ b/Makefile @@ -46,5 +46,11 @@ clean: docs: doxygen Doxyfile +cppcheck: + cppcheck --enable=all --inconclusive --std=c11 --language=c --platform=unix64 --suppress=missingIncludeSystem $(SRCS) + +valgrind: $(TARGET) + valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes ./$(TARGET) + # Mark rules as phony .PHONY: all run clean docs docs From 58e31c99a7cdd7b54204e9d33795f78b90feeb31 Mon Sep 17 00:00:00 2001 From: Imbus <> Date: Thu, 2 May 2024 05:29:25 +0200 Subject: [PATCH 2/2] Added demo workflow --- .forgejo/workflows/demo.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .forgejo/workflows/demo.yaml diff --git a/.forgejo/workflows/demo.yaml b/.forgejo/workflows/demo.yaml new file mode 100644 index 0000000..876684c --- /dev/null +++ b/.forgejo/workflows/demo.yaml @@ -0,0 +1,18 @@ +name: Demo +run-name: ${{ github.actor }} is testing +on: [push] +jobs: + Explore-CI: + runs-on: ubuntu-latest + steps: + - run: echo "The job was automatically triggered by a ${{ github.event_name }} event." + - run: echo "This job is now running on a ${{ runner.os }} server." + - run: echo "The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." + - name: Check out repository code + uses: actions/checkout@v3 + - run: echo "The ${{ github.repository }} repository has been cloned to the runner." + - run: echo "The workflow is now ready to test your code on the runner." + - name: List files in the repository + run: | + ls ${{ github.workspace }} + - run: echo "This job's status is ${{ job.status }}."