Skip to content

Commit d5f2fa9

Browse files
committed
Update version
1 parent ba99e88 commit d5f2fa9

File tree

3 files changed

+45
-19
lines changed

3 files changed

+45
-19
lines changed

.github/workflows/build.yml

+43-17
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
on: [ 'push', 'pull_request' ]
2-
31
name: Build PHP Extensions
42

3+
on: [ 'push' ]
4+
55
jobs:
66
release:
77
name: Release
@@ -10,7 +10,7 @@ jobs:
1010
release_upload_url: ${{ steps.create_release.outputs.upload_url }}
1111
steps:
1212
- name: Checkout code
13-
uses: actions/checkout@v3
13+
uses: actions/checkout@v4
1414
- name: Create Release
1515
if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') }}
1616
id: create_release
@@ -29,17 +29,31 @@ jobs:
2929
needs: release
3030
strategy:
3131
matrix:
32-
php-version: [ '8.0', '8.1' ]
33-
alpine-version: [ '3.15', '3.16' ]
32+
php-version: [ '8.1', '8.2', '8.3' ]
33+
alpine-version: [ '3.16', '3.17', '3.18', '3.19', '3.20', 'edge' ]
34+
exclude:
35+
- php-version: '8.3'
36+
alpine-version: '3.16'
37+
- php-version: '8.3'
38+
alpine-version: '3.17'
39+
- php-version: '8.3'
40+
alpine-version: '3.18'
41+
- php-version: '8.2'
42+
alpine-version: '3.16'
43+
- php-version: '8.2'
44+
alpine-version: '3.17'
45+
- php-version: '8.1'
46+
alpine-version: '3.20'
47+
- php-version: '8.1'
48+
alpine-version: 'edge'
3449
max-parallel: 8
3550
fail-fast: false
3651
env:
3752
PHP_VERSION: ${{ matrix.php-version }}
3853
ALPINE_VERSION: ${{ matrix.alpine-version }}
39-
XLS_WRITER_VERSION: "1.5.4"
54+
XLS_WRITER_VERSION: '1.5.8'
4055
steps:
41-
- name: Checkout code
42-
uses: actions/checkout@v3
56+
- uses: actions/checkout@v4
4357
- name: Build Xlswriter
4458
run: cd xlswriter && ./build.sh
4559
- name: Release and Upload Assets
@@ -48,7 +62,7 @@ jobs:
4862
env:
4963
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5064
with:
51-
upload_url: ${{ needs.release.outputs.release_upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
65+
upload_url: ${{ needs.release.outputs.release_upload_url }}
5266
asset_path: xlswriter/xlswriter-${{ matrix.php-version }}-alpine-v${{ matrix.alpine-version }}.so
5367
asset_name: xlswriter-${{ matrix.php-version }}-alpine-v${{ matrix.alpine-version }}.so
5468
asset_content_type: application/octet-stream
@@ -59,17 +73,31 @@ jobs:
5973
needs: release
6074
strategy:
6175
matrix:
62-
php-version: [ '8.0', '8.1' ]
63-
alpine-version: [ '3.15', '3.16' ]
76+
php-version: [ '8.1', '8.2', '8.3' ]
77+
alpine-version: [ '3.16', '3.17', '3.18', '3.19', '3.20', 'edge' ]
78+
exclude:
79+
- php-version: '8.3'
80+
alpine-version: '3.16'
81+
- php-version: '8.3'
82+
alpine-version: '3.17'
83+
- php-version: '8.3'
84+
alpine-version: '3.18'
85+
- php-version: '8.2'
86+
alpine-version: '3.16'
87+
- php-version: '8.2'
88+
alpine-version: '3.17'
89+
- php-version: '8.1'
90+
alpine-version: '3.20'
91+
- php-version: '8.1'
92+
alpine-version: 'edge'
6493
max-parallel: 8
6594
fail-fast: false
6695
env:
6796
PHP_VERSION: ${{ matrix.php-version }}
6897
ALPINE_VERSION: ${{ matrix.alpine-version }}
69-
IMAGICK_VERSION: "3.7.0"
98+
IMAGICK_VERSION: '3.7.0'
7099
steps:
71-
- name: Checkout code
72-
uses: actions/checkout@v3
100+
- uses: actions/checkout@v4
73101
- name: Build imagick
74102
run: cd imagick && ./build.sh
75103
- name: Release and Upload Assets
@@ -78,9 +106,7 @@ jobs:
78106
env:
79107
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
80108
with:
81-
upload_url: ${{ needs.release.outputs.release_upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
109+
upload_url: ${{ needs.release.outputs.release_upload_url }}
82110
asset_path: imagick/imagick-${{ matrix.php-version }}-alpine-v${{ matrix.alpine-version }}.so
83111
asset_name: imagick-${{ matrix.php-version }}-alpine-v${{ matrix.alpine-version }}.so
84112
asset_content_type: application/octet-stream
85-
86-

imagick/build.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env sh
22

3-
docker-compose build imagick
3+
docker compose build imagick
44
docker run --name imagick build/imagick
55
docker cp imagick:/opt/www/modules/imagick.so imagick-${PHP_VERSION}-alpine-v${ALPINE_VERSION}.so
66
docker rm imagick

xlswriter/build.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env sh
22

3-
docker-compose build xlswriter
3+
docker compose build xlswriter
44
docker run --name xlswriter build/xlswriter
55
docker cp xlswriter:/opt/www/modules/xlswriter.so xlswriter-${PHP_VERSION}-alpine-v${ALPINE_VERSION}.so
66
docker rm xlswriter

0 commit comments

Comments
 (0)