forked from udan11/php-xz
-
-
Notifications
You must be signed in to change notification settings - Fork 4
42 lines (31 loc) · 865 Bytes
/
Copy pathlinux.yml
File metadata and controls
42 lines (31 loc) · 865 Bytes
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
# https://help.github.com/en/categories/automating-your-workflow-with-github-actions
on:
- pull_request
- push
name: "Linux"
jobs:
build:
name: "Build and Tests (Linux)"
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest"]
php: ["8.5", "8.4", "8.3", "8.2", "8.1", "8.0", "7.4", "7.3", "7.2", "7.1", "7.0"]
runs-on: ${{ matrix.os }}
steps:
- name: "Install liblzma"
run: sudo apt-get install -y liblzma-dev
- name: "Checkout"
uses: actions/checkout@v5
- name: "Install PHP ${{ matrix.php }}"
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
- name: "Compile extension"
run: |
phpize
./configure
make
sudo make install
- name: "Run tests"
run: make test