Skip to content

Commit

Permalink
Build using different php versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
kirmorozov authored Jan 14, 2021
1 parent 27b24f3 commit 663ca66
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/c-cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,21 @@ 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
run: >
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
Expand Down

0 comments on commit 663ca66

Please sign in to comment.