diff options
author | Rodrigo Arias Mallo <rodarima@gmail.com> | 2025-08-25 00:17:44 +0200 |
---|---|---|
committer | Rodrigo Arias Mallo <rodarima@gmail.com> | 2025-08-25 00:21:27 +0200 |
commit | 580622b70f85c7a3ced75e4a586bc2ce0d1e278b (patch) | |
tree | 3ae76c7f5860bc88c70c5055f4387138c90a062a /.github/workflows/build.yml | |
parent | 6bbab7570134379aca32722350da6690f999d6cc (diff) |
Run leak check automatically in GitHub CI
Diffstat (limited to '.github/workflows/build.yml')
-rw-r--r-- | .github/workflows/build.yml | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7482cda6..528a8444 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -63,6 +63,35 @@ jobs: # name: upload-html-test-results # path: | # build/test/html + ubuntu-latest-memory-leaks: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + with: + fetch-depth: 1 + - name: Update package lists + run: sudo apt update + - name: Install dependencies + run: sudo apt install -y libfltk1.3-dev libssl-dev libpng-dev libjpeg-dev libwebp-dev libbrotli-dev xvfb x11-apps x11-utils imagemagick + - name: autogen + run: ./autogen.sh + - name: Make install dir + run: mkdir install build + - name: configure + run: cd build && ../configure CFLAGS="-fsanitize=address" CXXFLAGS="-fsanitize=address" --prefix=$(readlink -f ../install) --enable-html-tests + - name: make + run: cd build && make + - name: make install + run: cd build && make install + - name: Copy config to .dillo + run: | + mkdir -p ~/.dillo/ + cp install/etc/dillo/* ~/.dillo/ + - name: make check + run: | + export DILLOBIN=$(readlink -f install/bin/dillo) + cd build && make check || (cat test/html/test-suite.log; false) + export DILLOBIN= ubuntu-latest-no-tls: needs: ubuntu-latest-html-tests runs-on: ubuntu-latest |