-
Notifications
You must be signed in to change notification settings - Fork 5
46 lines (32 loc) · 1018 Bytes
/
ci.yml
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
name: Build and Test
on: [ push, pull_request ]
jobs:
build-job:
name: PHP ${{ matrix.php }}
runs-on: ubuntu-22.04
strategy:
matrix:
php: [ '8.0', '8.1', '8.2' ]
steps:
- name: OS - Install linux-can/can-utils
run: sudo apt install -y can-utils
- name: OS - Install extra modules (vcan)
run: sudo apt-get install -y linux-modules-extra-$(uname -r)
- name: OS - Load extra modules (vcan)
run: sudo modprobe vcan
- name: Git - Checkout
uses: actions/checkout@v2
- name: PHP - Setup
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
ini-values: error_reporting=-1, display_errors=On
tools: none
- name: Extension - PHPize
run: phpize
- name: Extension - Configure
run: ./configure --enable-canbus
- name: Extension - Make
run: make
- name: Extension - Test
run: env NO_INTERACTION=1 make test