Bump actions/checkout from 3 to 4 #11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] | |
type: ["ts", "nts"] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install libi2c-dev -y | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
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 |