-
-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (36 loc) · 996 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
name: CI
on: [push, pull_request, workflow_dispatch]
jobs:
run:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
# arch: ["armv6", "armv7", "aarch64", "amd64"]
php: ["8.0", "8.1", "8.2", "8.3", "8.4"]
type: ["ts", "nts"]
steps:
- name: Checkout code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install libi2c-dev -y
- name: Setup PHP
uses: shivammathur/setup-php@c541c155eee45413f5b09a52248675b1a2575231 # v2.31.1
with:
php-version: ${{ matrix.php }}
coverage: none
extensions: none
tools: none
env:
phpts: ${{ matrix.type }}
update: true
- name: Prepare for build
run: phpize && ./configure
- name: Build ext-i2c
run: make
- name: Run test suite
run: make test
env:
NO_INTERACTION: 1