Skip to content

Commit

Permalink
Enable core dumps in GitHub workflow
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
koriym committed Jun 27, 2024
1 parent 80e838e commit 45cfb61
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
php -d extension=./modules/rayaop.so -d memory_limit=128M -d report_memleaks=1 rayaop.php

0 comments on commit 45cfb61

Please sign in to comment.