Skip to content

Commit

Permalink
Test installing parle with pecl
Browse files Browse the repository at this point in the history
  • Loading branch information
mlocati authored and weltling committed May 11, 2023
1 parent b06e787 commit 0fbd9d4
Showing 1 changed file with 30 additions and 1 deletion.
31 changes: 30 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,33 @@ jobs:
CC=gcc-${{ matrix.gcc-versions }} CXX=g++-${{ matrix.gcc-versions }} ./configure $UTF32_OPT
- run: make
- run: make test TESTS="-P -q --show-diff"

pecl:
runs-on: ubuntu-latest
container: php:8.2-cli-alpine
steps:
- name: Install required system packages
run: apk add --update $PHPIZE_DEPS
- name: Checkout
uses: actions/checkout@v3
- name: Create temporary directory
id: temp-dir
run: printf "path=%s\n" "$(mktemp -d)" >>"$GITHUB_OUTPUT"
- name: Create package
run: |
cd "${{ steps.temp-dir.outputs.path }}"
pecl package "$GITHUB_WORKSPACE/package.xml"
- name: Compile package
run: printf '' | pecl install ${{ steps.temp-dir.outputs.path }}/parle-*.tgz
- name: Enable extension
run: docker-php-ext-enable parle
- name: Check for PHP startup warnings
run: |
php -d display_errors=stderr -d display_startup_errors=1 -d error_reporting=-1 -r ';' 2>/tmp/php-startup-warnings
if [ -s /tmp/php-startup-warnings ]; then
echo 'The PHP extension was successfully installed, but PHP raised these warnings:' >&2
cat /tmp/php-startup-warnings >&2
exit 1
fi
echo "PHP didn't raise any warnings at startup."
- name: Inspect extension
run: php --ri parle

0 comments on commit 0fbd9d4

Please sign in to comment.