forked from amphp/ext-uv
-
Notifications
You must be signed in to change notification settings - Fork 0
67 lines (58 loc) · 1.55 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
name: CI
on:
push:
branches:
- 0.3.x
pull_request:
branches:
- 0.3.x
jobs:
# Adapted from https://github.com/beberlei/hdrhistogram-php
tests:
name: Tests (PHP ${{ matrix.php }})
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
libuv: ["1.48.0"]
php:
- "8.1"
- "8.2"
- "8.3"
- "8.4"
phpts:
- "ts"
- "nts"
steps:
- run: |
sudo apt update
sudo apt-get install -y pkg-config clang-18 clang++-18 build-essential ninja-build
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}-${{ matrix.phpts }}
ini-file: development
coverage: none
tools: none
env:
phpts: ${{ matrix.phpts }}
debug: true
- name: Setup cmake
uses: jwlawson/actions-setup-cmake@v2
with:
cmake-version: "3.24"
- uses: ./.github/actions/install-libuv
id: libuv
with:
version: ${{ matrix.libuv }}
- run: |
echo ${{ steps.libuv.outputs.pkg_config_path }}
- name: Compile uv extension
uses: ./.github/actions/compile-extension
with:
debug: yes
libuv_pkgconfig: ${{ steps.libuv.outputs.pkg_config_path }}
# - name: Run the tests
# run: php run-tests.php -q -j$(getconf _NPROCESSORS_ONLN) -p $(which php) --show-diff --set-timeout 120