-
Notifications
You must be signed in to change notification settings - Fork 4
54 lines (47 loc) · 1.2 KB
/
php.yml
File metadata and controls
54 lines (47 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Build and Test
on:
pull_request:
types:
- opened
- reopened
- synchronize
push:
branches:
- "master"
tags-ignore:
- "*"
env:
NO_INTERACTION: 1
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
php-version: ["8.4", "8.3", "8.2", "8.1", "8.0", "7.4", "7.3"]
steps:
- uses: actions/checkout@v4
- name: Cancel Previous Runs
if: contains(matrix.os, 'ubuntu') && contains(matrix.php-version, '8.4')
uses: styfle/cancel-workflow-action@0.11.0
with:
access_token: ${{ github.token }}
- name: Install Linux Dependencies
if: contains(matrix.os, 'ubuntu')
run: sudo apt-get install -y autoconf build-essential gcc g++ valgrind
- name: Install PHP
id: install_php
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
tools: phpize
- name: Build
run: |
phpize
./configure --enable-bencode
make -j$(nproc)
- name: Test
run: |
chmod 600 ./.valgrindrc
make test TESTS="-m"