@@ -29,17 +29,17 @@ jobs:
2929 uses : wyrihaximus/github-action-supported-php-versions@v1
3030 with :
3131 upcomingReleases : true
32- supported-arch -matrix :
33- name : Supported processor architectures
32+ supported-platform -matrix :
33+ name : Supported processor platforms
3434 runs-on : ubuntu-latest
3535 outputs :
36- arch : ${{ steps.supported-arch -matrix.outputs.arch }}
36+ platform : ${{ steps.supported-platform -matrix.outputs.platform }}
3737 steps :
38- - uses : actions/checkout@v4
39- - id : supported-arch-matrix
40- name : Generate Arch
41- run : |
42- echo "arch=[\\\"amd64\\\",\\\"arm64\\\"]" >> $GITHUB_OUTPUT
38+ - id : supported-platform-matrix
39+ name : Generate platform
40+ uses : wyrihaximus/github-action-oci-image-supported-platforms@main
41+ with :
42+ image : " php:8.4-cli-alpine3.21 "
4343 image-type-matrix :
4444 name : Create Image Type Matrix
4545 runs-on : ubuntu-latest
@@ -136,7 +136,7 @@ jobs:
136136 needs :
137137 - lint
138138 - image-matrix
139- - supported-arch -matrix
139+ - supported-platform -matrix
140140 - exclude-matrix
141141 runs-on : ubuntu-latest
142142 strategy :
@@ -153,7 +153,7 @@ jobs:
153153 timeout_minutes : 120
154154 retry_wait_seconds : 30
155155 max_attempts : 5
156- command : (echo " ${{ needs.supported-arch -matrix.outputs.arch }}" | jq -r '.[]') | xargs -I % ./build-php.sh $(echo "${{ matrix.image }}" | tr '-' ' ') %
156+ command : (echo ' ${{ needs.supported-platform -matrix.outputs.platform }}' | jq -r '.[]') | xargs -I % ./build-php.sh $(echo "${{ matrix.image }}" | tr '-' ' ') %
157157 - run : cat ./docker-image/image.tags | xargs -I % docker inspect --format='%={{.Id}}:{{index .Config.Env 7}}' %
158158 - run : docker save "${DOCKER_IMAGE}" | gzip -9 > ./docker-image/image.tar
159159 - run : docker images
@@ -167,7 +167,7 @@ jobs:
167167 needs :
168168 - build
169169 - image-matrix
170- - supported-arch -matrix
170+ - supported-platform -matrix
171171 - exclude-matrix
172172 runs-on : ubuntu-latest
173173 strategy :
@@ -195,7 +195,7 @@ jobs:
195195 needs :
196196 - build
197197 - image-matrix
198- - supported-arch -matrix
198+ - supported-platform -matrix
199199 - exclude-matrix
200200 runs-on : ubuntu-latest
201201 strategy :
@@ -215,7 +215,7 @@ jobs:
215215 - run : docker load --input ./docker-image/image.tar
216216 - run : |
217217 export IMAGE_BASE_VERSION=$(php -r 'echo explode("-", "${{ matrix.image }}")[2];')
218- (echo "${{ needs.supported-arch -matrix.outputs.arch }}" | jq -r '.[]') | xargs -I % make $(php -r 'echo "test-", explode("-", str_replace(["zts-zts", "cli-nts"], ["zts", "nts"], "${{ matrix.image }}"))[0];') IMAGE_ARCH=%
218+ (echo "${{ needs.supported-platform -matrix.outputs.platform }}" | jq -r '.[]') | xargs -I % make $(php -r 'echo "test-", explode("-", str_replace(["zts-zts", "cli-nts"], ["zts", "nts"], "${{ matrix.image }}"))[0];') IMAGE_ARCH=%
219219 - run : rm -Rf ./docker-image/
220220 check-mark :
221221 name : ✔️
@@ -233,7 +233,7 @@ jobs:
233233 needs :
234234 - check-mark
235235 - image-matrix
236- - supported-arch -matrix
236+ - supported-platform -matrix
237237 - exclude-matrix
238238 runs-on : ubuntu-latest
239239 strategy :
@@ -306,5 +306,5 @@ jobs:
306306 cat ./command.sh
307307 ./command.sh
308308 env :
309- TARGET_ARCHS : ${{ needs.supported-arch -matrix.outputs.arch }}
309+ TARGET_ARCHS : ${{ needs.supported-platform -matrix.outputs.platform }}
310310 - run : docker images
0 commit comments