From 2ff1c51a863e43ebf85f6b2c915926c386533f67 Mon Sep 17 00:00:00 2001 From: Patrick Steinhardt Date: Fri, 6 Sep 2024 10:48:37 +0200 Subject: [PATCH] ci: add job checking for memory leaks Add a CI job that exercises the clar for memory leaks. --- .github/workflows/ci.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 54674a0..aae853b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,6 +13,11 @@ jobs: platform: - os: ubuntu-latest generator: Unix Makefiles + - os: ubuntu-latest + generator: Unix Makefiles + env: + CC: "clang" + CFLAGS: "-fsanitize=leak" - os: macos-latest generator: Unix Makefiles - os: windows-latest @@ -24,6 +29,10 @@ jobs: runs-on: ${{ matrix.platform.os }} + env: + CC: ${{matrix.platform.env.CC}} + CFLAGS: ${{matrix.platform.env.CFLAGS}} + steps: - name: Check out uses: actions/checkout@v2