From 025c999e39dc0aebc9a42a98ce49006bd631d739 Mon Sep 17 00:00:00 2001 From: Kirill Morozov Date: Thu, 14 Jan 2021 06:38:18 +0300 Subject: [PATCH] Change php installation tool --- .github/workflows/c-cpp.yml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index 422d90f7..b69f44ec 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -15,14 +15,10 @@ jobs: php: [ '7.4', '8.0' ] steps: - uses: actions/checkout@v2 - - name: install PHP - run: > - sudo apt install software-properties-common && \ - sudo add-apt-repository ppa:ondrej/php && \ - sudo apt-get update \ - sudo apt-get install php$PHP_VERSION php$PHP_VERSION-dev - env: - PHP_VERSION: ${{ matrix.php }} + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php }} - name: make run: make - name: make install