From 5116e11ceaad47d1d058779167a39bd37bc2cd39 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Mon, 10 May 2021 17:51:18 +0100 Subject: [PATCH] Only install the stuff we need to run PHP, not to build it --- .github/workflows/main.yml | 8 ++++---- tests/gh-actions/install-dependencies.sh | 3 +++ 2 files changed, 7 insertions(+), 4 deletions(-) create mode 100755 tests/gh-actions/install-dependencies.sh diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8ff1cad46..ad5304ace 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -55,7 +55,7 @@ jobs: - 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 + run: ./tests/gh-actions/install-dependencies.sh - name: Prefix PHP to PATH run: echo "$(pwd)/bin/php7/bin" >> $GITHUB_PATH @@ -105,7 +105,7 @@ jobs: - 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 + run: ./tests/gh-actions/install-dependencies.sh - name: Prefix PHP to PATH run: echo "$(pwd)/bin/php7/bin" >> $GITHUB_PATH @@ -157,7 +157,7 @@ jobs: - 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 + run: ./tests/gh-actions/install-dependencies.sh - name: Prefix PHP to PATH run: echo "$(pwd)/bin/php7/bin" >> $GITHUB_PATH @@ -209,7 +209,7 @@ jobs: - 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 + run: ./tests/gh-actions/install-dependencies.sh - name: Prefix PHP to PATH run: echo "$(pwd)/bin/php7/bin" >> $GITHUB_PATH diff --git a/tests/gh-actions/install-dependencies.sh b/tests/gh-actions/install-dependencies.sh new file mode 100755 index 000000000..368e27e3a --- /dev/null +++ b/tests/gh-actions/install-dependencies.sh @@ -0,0 +1,3 @@ +#!/bin/bash +sudo apt update && sudo apt install -y \ + libzip5