diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 23a583af1..8291fd54c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -53,6 +53,10 @@ jobs: if: steps.php-build-cache.outputs.cache-hit != 'true' run: exit 1 + - name: Install cached PHP's dependencies + if: steps.php-build-cache.outputs.cache-hit == 'true' + run: chmod +x ./bin/php7/install-dependencies.sh && ./bin/php7/install-dependencies.sh + - name: Prefix PHP to PATH run: echo "$(pwd)/bin/php7/bin" >> $GITHUB_PATH @@ -99,6 +103,10 @@ jobs: if: steps.php-build-cache.outputs.cache-hit != 'true' run: exit 1 + - name: Install cached PHP's dependencies + if: steps.php-build-cache.outputs.cache-hit == 'true' + run: chmod +x ./bin/php7/install-dependencies.sh && ./bin/php7/install-dependencies.sh + - name: Prefix PHP to PATH run: echo "$(pwd)/bin/php7/bin" >> $GITHUB_PATH @@ -147,6 +155,10 @@ jobs: if: steps.php-build-cache.outputs.cache-hit != 'true' run: exit 1 + - name: Install cached PHP's dependencies + if: steps.php-build-cache.outputs.cache-hit == 'true' + run: chmod +x ./bin/php7/install-dependencies.sh && ./bin/php7/install-dependencies.sh + - name: Prefix PHP to PATH run: echo "$(pwd)/bin/php7/bin" >> $GITHUB_PATH diff --git a/tests/gh-actions/build.sh b/tests/gh-actions/build.sh index 69fec6c29..35639d22d 100755 --- a/tests/gh-actions/build.sh +++ b/tests/gh-actions/build.sh @@ -71,3 +71,4 @@ echo "extension=crypto.so" >> "$INSTALL_DIR/etc/conf.d/crypto.ini" cd .. rm "$INSTALL_DIR/etc/conf.d/xdebug.ini" || true +cp install-dependencies.sh "$INSTALL_DIR"