Skip to content

Commit aa66d24

Browse files
committed
Enable opcache in opcache.ini instead of php.ini in PHP 5.5
Fix jobs requirements in CI workflow
1 parent ab12b45 commit aa66d24

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.github/workflows/ci.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,8 @@ jobs:
121121
done
122122
package:
123123
name: Update dist
124-
if: "always() && !contains(github.event.head_commit.message, 'skip-release')"
125-
needs: test
124+
if: "!contains(github.event.head_commit.message, 'skip-release')"
125+
needs: [build-php, test]
126126
runs-on: ubuntu-latest
127127
strategy:
128128
fail-fast: false
@@ -156,8 +156,8 @@ jobs:
156156
path: builds
157157
release:
158158
runs-on: ubuntu-latest
159-
if: "always() && !contains(github.event.head_commit.message, 'skip-release')"
160-
needs: package
159+
if: "!contains(github.event.head_commit.message, 'skip-release')"
160+
needs: [build-php, test, package]
161161
steps:
162162
- uses: actions/checkout@v2
163163
- run: mkdir builds

scripts/setup-phpbuild.sh

+3
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,6 @@
33
cp -a php-build/definitions/* /usr/local/share/php-build/definitions/
44
cp -a php-build/patches/*.patch /usr/local/share/php-build/patches/
55
cp /usr/local/share/php-build/default_configure_options /usr/local/share/php-build/default_configure_options.bak
6+
7+
# Patch to enable opcache in opcache.ini instead of php.ini
8+
sed -i "s|opcache.so\" >> \"\$PREFIX/etc/php.ini|opcache.so\" >> \"\$PREFIX/etc/conf.d/opcache.ini|" "$(command -v php-build)"

0 commit comments

Comments
 (0)