Skip to content

Commit 663ca66

Browse files
authored
Build using different php versions.
1 parent 27b24f3 commit 663ca66

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/c-cpp.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,21 @@ on:
88

99
jobs:
1010
build:
11-
12-
runs-on: ubuntu-latest
13-
11+
runs-on: ${{ matrix.os }}
12+
strategy:
13+
matrix:
14+
os: [ ubuntu-16.04, ubuntu-latest ]
15+
php: [ '7.4', '8.0' ]
1416
steps:
1517
- uses: actions/checkout@v2
1618
- name: install PHP
1719
run: >
1820
sudo apt install software-properties-common && \
1921
sudo add-apt-repository ppa:ondrej/php && \
2022
sudo apt-get update \
21-
sudo apt-get install php7.4 php7.4-dev
23+
sudo apt-get install php$PHP_VERSION php$PHP_VERSION-dev
24+
env:
25+
PHP_VERSION: ${{ matrix.php }}
2226
- name: make
2327
run: make
2428
- name: make install

0 commit comments

Comments
 (0)