Skip to content

Commit 744670f

Browse files
committed
🔥 (i hope nothing explodes)
1 parent e1931ab commit 744670f

File tree

4 files changed

+105
-73
lines changed

4 files changed

+105
-73
lines changed

.github/workflows/linux.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ name: "Linux"
88

99
jobs:
1010

11-
linux:
11+
build:
1212
name: "Build and Tests (Linux)"
1313

1414
strategy:
1515
fail-fast: false
1616
matrix:
1717
os: ["ubuntu-latest"]
18-
php: ["8.3", "8.2", "8.1", "8.0", "7.4", "7.3", "7.2", "7.1", "7.0"]
18+
php: ["8.4", "8.3", "8.2", "8.1", "8.0", "7.4", "7.3", "7.2", "7.1", "7.0"]
1919

2020
runs-on: ${{ matrix.os }}
2121

@@ -24,7 +24,7 @@ jobs:
2424
run: sudo apt-get install -y liblzma-dev
2525

2626
- name: "Checkout"
27-
uses: actions/checkout@v3
27+
uses: actions/checkout@v5
2828

2929
- name: "Install PHP ${{ matrix.php }}"
3030
uses: shivammathur/setup-php@v2
@@ -40,4 +40,3 @@ jobs:
4040
4141
- name: "Run tests"
4242
run: make test
43-

.github/workflows/windows-php8.yml

Lines changed: 0 additions & 69 deletions
This file was deleted.

.github/workflows/windows.yml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# https://help.github.com/en/categories/automating-your-workflow-with-github-actions
2+
# https://github.com/php/php-windows-builder
3+
# https://github.com/Imagick/imagick/blob/45adfb7b1e322eaa6174e88f7d5e27ef20e0596e/.github/workflows/windows.yml
4+
5+
on:
6+
pull_request:
7+
push:
8+
release:
9+
types: [created]
10+
11+
name: "Windows"
12+
13+
jobs:
14+
15+
get-extension-matrix:
16+
runs-on: ubuntu-latest
17+
outputs:
18+
matrix: ${{ steps.extension-matrix.outputs.matrix }}
19+
20+
steps:
21+
- name: "Checkout"
22+
uses: actions/checkout@v5
23+
24+
- name: "Get the extension matrix"
25+
id: extension-matrix
26+
uses: php/php-windows-builder/extension-matrix@v1
27+
with:
28+
php-version-list: "7.4, 8.0, 8.1, 8.2, 8.3, 8.4"
29+
arch-list: "x64"
30+
31+
32+
build:
33+
name: "Build and Tests (Windows)"
34+
needs: get-extension-matrix
35+
36+
runs-on: ${{ matrix.os }}
37+
strategy:
38+
matrix: ${{fromJson(needs.get-extension-matrix.outputs.matrix)}}
39+
steps:
40+
- name: "Checkout"
41+
uses: actions/checkout@v5
42+
43+
- name: "Build the extension"
44+
uses: php/php-windows-builder/extension@v1
45+
with:
46+
php-version: ${{ matrix.php-version }}
47+
arch: ${{ matrix.arch }}
48+
ts: ${{ matrix.ts }}
49+
50+
51+
release:
52+
runs-on: ubuntu-latest
53+
needs: build
54+
if: ${{ github.event_name == 'release' }}
55+
56+
steps:
57+
- name: "Upload artifact to the release"
58+
uses: php/php-windows-builder/release@v1
59+
with:
60+
release: ${{ github.event.release.tag_name }}
61+
token: ${{ secrets.GITHUB_TOKEN }}

composer.json

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"$schema": "https://getcomposer.org/schema.json",
3+
"name": "codemasher/php-ext-xz",
4+
"description": "A PHP Extension providing xz (LZMA2) compression/decompression via PHP streams.",
5+
"keywords": ["php-extension", "xz", "lzma2"],
6+
"license": "The PHP License",
7+
"type": "php-ext",
8+
"php-ext": {
9+
"extension-name": "xz",
10+
"priority": 99
11+
},
12+
"authors": [
13+
{
14+
"name": "deniyuda348"
15+
},
16+
{
17+
"name": "udan11",
18+
"homepage": "https://github.com/udan11/php-xz"
19+
},
20+
{
21+
"name": "smiley",
22+
"email": "[email protected]",
23+
"homepage": "https://github.com/codemasher"
24+
},
25+
{
26+
"name": "Contributors",
27+
"homepage":"https://github.com/codemasher/php-ext-xz/graphs/contributors"
28+
}
29+
],
30+
"funding": [
31+
{
32+
"type": "Ko-Fi",
33+
"url": "https://ko-fi.com/codemasher"
34+
}
35+
],
36+
"homepage": "https://github.com/codemasher/php-ext-xz",
37+
"support": {
38+
"issues": "https://github.com/codemasher/php-ext-xz/issues",
39+
"source": "https://github.com/codemasher/php-ext-xz"
40+
}
41+
}

0 commit comments

Comments
 (0)