Skip to content

Update ci.yml

Update ci.yml #14

Workflow file for this run

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