From 3781c2a6dbb80c639e9d1c745282c777e670f7d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Mon, 18 Mar 2024 12:40:23 +0100 Subject: [PATCH] Add valgrind to CI Fixes: https://github.com/quickjs-ng/quickjs/issues/71 --- .github/workflows/valgrind.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/valgrind.yml diff --git a/.github/workflows/valgrind.yml b/.github/workflows/valgrind.yml new file mode 100644 index 0000000..fd53336 --- /dev/null +++ b/.github/workflows/valgrind.yml @@ -0,0 +1,23 @@ +name: valgrind + +on: + push: + branches: + - master + workflow_dispatch: + +jobs: + linux: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + submodules: true + - name: install valgrind + run: sudo apt-get install valgrind + - name: build + run: | + make BUILD_TYPE=RelWithDebInfo + - name: test + run: | + valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes --error-exitcode=1 ./build/run-test262 -m -c test262.conf -a