Skip to content

Commit 025c999

Browse files
authored
Change php installation tool
1 parent 663ca66 commit 025c999

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

.github/workflows/c-cpp.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,10 @@ jobs:
1515
php: [ '7.4', '8.0' ]
1616
steps:
1717
- uses: actions/checkout@v2
18-
- name: install PHP
19-
run: >
20-
sudo apt install software-properties-common && \
21-
sudo add-apt-repository ppa:ondrej/php && \
22-
sudo apt-get update \
23-
sudo apt-get install php$PHP_VERSION php$PHP_VERSION-dev
24-
env:
25-
PHP_VERSION: ${{ matrix.php }}
18+
- name: Setup PHP
19+
uses: shivammathur/setup-php@v2
20+
with:
21+
php-version: ${{ matrix.php }}
2622
- name: make
2723
run: make
2824
- name: make install

0 commit comments

Comments
 (0)