28 lines
727 B
YAML
28 lines
727 B
YAML
name: Build and Test
|
|
on: [push, pull_request]
|
|
jobs:
|
|
ubuntu:
|
|
strategy:
|
|
matrix:
|
|
version: ["7.2", "7.3", "7.4", "8.0", "8.1", "8.2"]
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- name: Checkout pdlib
|
|
uses: actions/checkout@v3
|
|
with:
|
|
submodules: true
|
|
- name: install-deps
|
|
run: sudo apt update -y && sudo apt install -y libopenblas-dev liblapack-dev
|
|
- name: Setup PHP
|
|
uses: shivammathur/setup-php@v2
|
|
with:
|
|
php-version: ${{matrix.version}}
|
|
- name: phpize
|
|
run: phpize
|
|
- name: configure
|
|
run: ./configure
|
|
- name: make
|
|
run: make
|
|
- name: test
|
|
run: make test TESTS="--show-diff tests" || true
|