1
- on : [ 'push', 'pull_request' ]
2
-
3
1
name : Build PHP Extensions
4
2
3
+ on : [ 'push' ]
4
+
5
5
jobs :
6
6
release :
7
7
name : Release
10
10
release_upload_url : ${{ steps.create_release.outputs.upload_url }}
11
11
steps :
12
12
- name : Checkout code
13
- uses : actions/checkout@v3
13
+ uses : actions/checkout@v4
14
14
- name : Create Release
15
15
if : ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') }}
16
16
id : create_release
@@ -29,17 +29,31 @@ jobs:
29
29
needs : release
30
30
strategy :
31
31
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'
34
49
max-parallel : 8
35
50
fail-fast : false
36
51
env :
37
52
PHP_VERSION : ${{ matrix.php-version }}
38
53
ALPINE_VERSION : ${{ matrix.alpine-version }}
39
- XLS_WRITER_VERSION : " 1.5.4 "
54
+ XLS_WRITER_VERSION : ' 1.5.8 '
40
55
steps :
41
- - name : Checkout code
42
- uses : actions/checkout@v3
56
+ - uses : actions/checkout@v4
43
57
- name : Build Xlswriter
44
58
run : cd xlswriter && ./build.sh
45
59
- name : Release and Upload Assets
48
62
env :
49
63
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
50
64
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 }}
52
66
asset_path : xlswriter/xlswriter-${{ matrix.php-version }}-alpine-v${{ matrix.alpine-version }}.so
53
67
asset_name : xlswriter-${{ matrix.php-version }}-alpine-v${{ matrix.alpine-version }}.so
54
68
asset_content_type : application/octet-stream
@@ -59,17 +73,31 @@ jobs:
59
73
needs : release
60
74
strategy :
61
75
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'
64
93
max-parallel : 8
65
94
fail-fast : false
66
95
env :
67
96
PHP_VERSION : ${{ matrix.php-version }}
68
97
ALPINE_VERSION : ${{ matrix.alpine-version }}
69
- IMAGICK_VERSION : " 3.7.0"
98
+ IMAGICK_VERSION : ' 3.7.0'
70
99
steps :
71
- - name : Checkout code
72
- uses : actions/checkout@v3
100
+ - uses : actions/checkout@v4
73
101
- name : Build imagick
74
102
run : cd imagick && ./build.sh
75
103
- name : Release and Upload Assets
78
106
env :
79
107
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
80
108
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 }}
82
110
asset_path : imagick/imagick-${{ matrix.php-version }}-alpine-v${{ matrix.alpine-version }}.so
83
111
asset_name : imagick-${{ matrix.php-version }}-alpine-v${{ matrix.alpine-version }}.so
84
112
asset_content_type : application/octet-stream
85
-
86
-
0 commit comments