Skip to content

Commit 6a20de2

Browse files
committed
initial commit
0 parents  commit 6a20de2

File tree

2 files changed

+58
-0
lines changed

2 files changed

+58
-0
lines changed

.editorconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
indent_size = 2
7+
indent_style = space
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true

.github/workflows/build.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Build Php Extensions
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
strategy:
10+
matrix:
11+
php_version:
12+
- 8.2
13+
- 8.3
14+
- 8.4
15+
extension:
16+
- xdebug
17+
- pgsql
18+
- pdo_pgsql
19+
- redis
20+
- opcache
21+
- pcntl
22+
- zip
23+
- intl
24+
name: ext-${{ matrix.extension }}@php${{ matrix.php_version }}
25+
steps:
26+
- uses: shivammathur/setup-php@v2
27+
with:
28+
php-version: ${{ matrix.php_version }}
29+
30+
- name: Find extension directory
31+
id: extension_dir
32+
run: |
33+
php -r 'echo "extension_dir=" . ini_get("extension_dir");' >> "$GITHUB_OUTPUT"
34+
35+
- name: Install build script
36+
run: |
37+
curl https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions \
38+
-o /usr/local/bin/install-php-extensions
39+
chmod +x /usr/local/bin/install-php-extensions
40+
41+
- name: Build extension
42+
run: |
43+
install-php-extensions ${{ matrix.extension }}
44+
45+
- name: Archive extension
46+
uses: actions/upload-artifact@v4
47+
with:
48+
name: ext-${{ matrix.extension }}-php-${{ matrix.php_version }}
49+
path: ${{ steps.extension_dir.outputs.extension_dir }}/${{ matrix.extension }}.so

0 commit comments

Comments
 (0)