Skip to content

Commit

Permalink
Merge pull request #3 from shivammathur/develop
Browse files Browse the repository at this point in the history
1.0.1
  • Loading branch information
shivammathur authored Jun 22, 2020
2 parents 5613aa6 + 13c76ae commit 3021ce5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: Test
on:
repository_dispatch:
push:
branches:
- master
Expand All @@ -22,6 +23,7 @@ jobs:

- name: Setup PHP
run: |
zstd --version
version=${{ matrix.php-versions }}
bash install.sh ${version/./}
- name: Testing PHP version
Expand All @@ -37,8 +39,10 @@ jobs:
version=${{ matrix.php-versions }}
for bin in /tmp/php"${version/./}"/ext/*.so; do
extension=$(basename "$bin" | cut -d'.' -f 1)
php -r "if(! extension_loaded('$extension')) {throw new Exception('$extension not found');}"
php -r "if(! extension_loaded('$extension')) {throw new Exception('$extension not found');}" &
to_wait+=( $! )
done
wait "${to_wait[@]}"
php -r "if(! extension_loaded('Zend OPcache')) {throw new Exception('Zend OPcache not found');}"
- name: Testing PECL version
run: pecl -V
Expand Down
4 changes: 2 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ switch_version() {

# Function to setup PHP
setup_php() {
curl -o "$tmp_path".tar.xz -sSL "$github_repo"/releases/latest/download/"$php_version".tar.xz
sudo tar xf "$tmp_path".tar.xz -C /tmp
curl -o "$tmp_path".tar.zst -sSL "$github_repo"/releases/latest/download/"$php_version".tar.zst
zstdcat "$tmp_path".tar.zst --no-progress - | tar -xf - -C /tmp
sudo installer -pkg "$tmp_path"/"$php_version".mpkg -target /
sudo cp -a "$tmp_path"/lib/* /opt/local/lib
sudo cp "$php_etc_dir"/php.ini-development "$php_etc_dir"/php.ini
Expand Down

0 comments on commit 3021ce5

Please sign in to comment.