Skip to content

Commit 2e479bf

Browse files
author
ace411
committed
ci: configure GitHub actions
1 parent 47971f6 commit 2e479bf

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/ci.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: ext-mrloop CI
2+
on:
3+
push:
4+
branches:
5+
- develop
6+
jobs:
7+
build:
8+
runs-on: 'ubuntu-latest'
9+
strategy:
10+
fail-fast: false
11+
matrix:
12+
php: ['8.0', '8.1', '8.2', '8.3']
13+
name: PHP ${{ matrix.php }}
14+
steps:
15+
- uses: actions/checkout@v4
16+
- name: Install PHP
17+
uses: shivammathur/setup-php@master
18+
with:
19+
php-version: ${{ matrix.php }}
20+
- name: Run tests
21+
run: |
22+
git clone https://github.com/markreedz/mrloop.git mrloop && \
23+
git clone https://github.com/axboe/liburing.git liburing && cd liburing && make && make install && \
24+
cd ../ && git clone https://github.com/h2o/picohttpparser.git picohttp && \
25+
phpize && ./configure --with-mrloop="$(pwd)/mrloop" --with-picohttp="$(pwd)/picohttp" && \
26+
make && make test

0 commit comments

Comments
 (0)