From 45cfb61a6761cd98af4c66d9da586b770a5e18fe Mon Sep 17 00:00:00 2001 From: Akihito Koriyama Date: Fri, 28 Jun 2024 05:41:42 +0900 Subject: [PATCH] Enable core dumps in GitHub workflow This commit adds a step to the GitHub workflow to enable core dumps, useful for debugging. Additionally, it modifies the command for running the demo to use customized PHP configurations, including a limit on memory usage and enabling memory leak reports. --- .github/workflows/build.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5711832..83cc576 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -23,6 +23,11 @@ jobs: php-version: ${{ matrix.php-version }} extensions: mbstring, intl + - name: Enable core dumps + run: | + ulimit -c unlimited + echo '/tmp/core-%e.%p' | sudo tee /proc/sys/kernel/core_pattern + - name: Install build tools run: sudo apt-get update && sudo apt-get install -y autoconf automake libtool bison re2c @@ -38,4 +43,4 @@ jobs: - name: Run demo run: | php -d extension=./modules/rayaop.so -i | grep rayaop - php -d extension=./modules/rayaop.so rayaop.php \ No newline at end of file + php -d extension=./modules/rayaop.so -d memory_limit=128M -d report_memleaks=1 rayaop.php \ No newline at end of file