-
Notifications
You must be signed in to change notification settings - Fork 3
91 lines (91 loc) · 2.81 KB
/
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
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", "8.3", "8.4"]
runs-on: ubuntu-22.04
steps:
- name: Checkout php-bsdiff
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{matrix.version}}
- name: phpize
run: phpize
- name: configure
run: ./configure --with-libdir=x86_64-linux-gnu
- name: make
run: make
- name: test
run: make test TESTS="--show-diff tests"
macos:
strategy:
matrix:
version: ["7.2", "7.3", "7.4", "8.0", "8.1", "8.2", "8.3", "8.4"]
runs-on: macos-15
steps:
- name: Checkout php-bsdiff
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{matrix.version}}
- name: phpize
run: phpize
- name: configure
run: ./configure --with-bz2=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr
- name: make
run: make
- name: test
run: make test TESTS="--show-diff tests"
windows:
defaults:
run:
shell: cmd
strategy:
matrix:
version: ["7.2", "7.3", "7.4", "8.0", "8.1", "8.2", "8.3", "8.4"]
arch: [x64]
ts: [nts, ts]
os: [windows-2019, windows-2022]
exclude:
- { os: windows-2019, version: "8.4" }
- { os: windows-2019, version: "8.3" }
- { os: windows-2019, version: "8.2" }
- { os: windows-2019, version: "8.1" }
- { os: windows-2019, version: "8.0" }
- { os: windows-2022, version: "7.4" }
- { os: windows-2022, version: "7.3" }
- { os: windows-2022, version: "7.2" }
runs-on: ${{matrix.os}}
steps:
- name: Checkout php-bsdiff
uses: actions/checkout@v4
- name: Setup PHP
id: setup-php
uses: php/[email protected]
with:
version: ${{matrix.version}}
arch: ${{matrix.arch}}
ts: ${{matrix.ts}}
cache: true
- name: Download deps
run: |
curl -LO https://windows.php.net/downloads/php-sdk/deps/vc15/x64/libbzip2-1.0.8-vc15-${{matrix.arch}}.zip
7z x libbzip2-1.0.8-vc15-${{matrix.arch}}.zip -o..\deps
- name: Enable Developer Command Prompt
uses: ilammy/msvc-dev-cmd@v1
with:
arch: ${{matrix.arch}}
toolset: ${{steps.setup-php.outputs.toolset}}
- name: phpize
run: phpize
- name: configure
run: configure --enable-bsdiff --with-bz2=..\deps --with-prefix=${{steps.setup-php.outputs.prefix}}
- name: make
run: nmake
- name: test
run: nmake test TESTS="--show-diff tests"