Skip to content

Commit

Permalink
increase memory limit during github actions tests
Browse files Browse the repository at this point in the history
  • Loading branch information
diosmosis committed Jun 12, 2024
1 parent 77900cf commit 6c806f7
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/scripts/run-scoper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,15 @@ else
cd matomo
fi

php8.2 --ini
grep -r memory_limit /etc/php/8.2/cli/conf.d || true

sudo sed -i 's/memory_limit[[:space:]]*=[[:space:]]*[0-9-]\+/memory_limit = 2048M/g' /etc/php/8.2/cli/php.ini

if [[ -f "/etc/php/8.2/cli/conf.d/99-pecl.ini" ]]; then
sudo sed -i 's/memory_limit[[:space:]]*=[[:space:]]*[0-9-][[:space:]]*M\+/memory_limit = 2048M/g' /etc/php/8.2/cli/conf.d/99-pecl.ini
fi

echo "Memory limit used:"
php -r 'echo ini_get("memory_limit")."\n";'

php8.2 "$MATOMO_SCOPER_PATH" scope -y --rename-references .

0 comments on commit 6c806f7

Please sign in to comment.