From 663ca666aebb5ba0ab072b1348b94e099932c1b3 Mon Sep 17 00:00:00 2001 From: Kirill Morozov Date: Thu, 14 Jan 2021 06:22:27 +0300 Subject: [PATCH] Build using different php versions. --- .github/workflows/c-cpp.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index 8f208bd8..422d90f7 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -8,9 +8,11 @@ on: jobs: build: - - runs-on: ubuntu-latest - + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ ubuntu-16.04, ubuntu-latest ] + php: [ '7.4', '8.0' ] steps: - uses: actions/checkout@v2 - name: install PHP @@ -18,7 +20,9 @@ jobs: sudo apt install software-properties-common && \ sudo add-apt-repository ppa:ondrej/php && \ sudo apt-get update \ - sudo apt-get install php7.4 php7.4-dev + sudo apt-get install php$PHP_VERSION php$PHP_VERSION-dev + env: + PHP_VERSION: ${{ matrix.php }} - name: make run: make - name: make install