29
29
IMAGE_NAME : ${{ (github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && inputs.version) || startsWith(github.ref, 'refs/tags/')) && 'dunglas/frankenphp' || 'dunglas/frankenphp-dev' }}
30
30
jobs :
31
31
prepare :
32
- runs-on : ubuntu-latest
32
+ runs-on : ubuntu-24.04
33
33
outputs :
34
34
# Push if it's a scheduled job, a tag, or if we're committing to the main branch
35
35
push : ${{ (github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && inputs.version) || startsWith(github.ref, 'refs/tags/') || (github.ref == 'refs/heads/main' && github.event_name != 'pull_request')) && true || false }}
@@ -100,7 +100,7 @@ jobs:
100
100
VERSION : ${{ (github.ref_type == 'tag' && github.ref_name) || steps.check.outputs.ref || 'dev' }}
101
101
PHP_VERSION : ${{ steps.check.outputs.php_version }}
102
102
build :
103
- runs-on : ubuntu-latest
103
+ runs-on : ${{ startsWith(matrix.platform, 'linux/arm') && ' ubuntu-24.04-arm' || 'ubuntu-24.04' }}
104
104
needs :
105
105
- prepare
106
106
if : ${{ !fromJson(needs.prepare.outputs.skip) }}
@@ -111,12 +111,8 @@ jobs:
111
111
platform : ${{ fromJson(needs.prepare.outputs.platforms) }}
112
112
include :
113
113
- race : " "
114
- qemu : true
115
114
- platform : linux/amd64
116
- qemu : false
117
115
race : " -race" # The Go race detector is only supported on amd64
118
- - platform : linux/386
119
- qemu : false
120
116
exclude :
121
117
# arm/v6 is only available for Alpine: https://github.com/docker-library/golang/issues/502
122
118
- variant : php-${{ needs.prepare.outputs.php82_version }}-bookworm
@@ -132,11 +128,6 @@ jobs:
132
128
- uses : actions/checkout@v4
133
129
with :
134
130
ref : ${{ needs.prepare.outputs.ref }}
135
- - name : Set up QEMU
136
- if : matrix.qemu
137
- uses : docker/setup-qemu-action@v3
138
- with :
139
- platforms : ${{ matrix.platform }}
140
131
- name : Set up Docker Buildx
141
132
uses : docker/setup-buildx-action@v3
142
133
with :
@@ -202,7 +193,7 @@ jobs:
202
193
if-no-files-found : error
203
194
retention-days : 1
204
195
- name : Run tests
205
- if : ${{ !matrix.qemu && ! fromJson(needs.prepare.outputs.push) }}
196
+ if : ${{ !fromJson(needs.prepare.outputs.push) }}
206
197
run : |
207
198
docker run --platform=${{ matrix.platform }} --rm \
208
199
"$(jq -r '."builder-${{ matrix.variant }}"."containerimage.config.digest"' <<< "${METADATA}")" \
@@ -211,7 +202,7 @@ jobs:
211
202
METADATA : ${{ steps.build.outputs.metadata }}
212
203
# Adapted from https://docs.docker.com/build/ci/github-actions/multi-platform/
213
204
push :
214
- runs-on : ubuntu-latest
205
+ runs-on : ubuntu-24.04
215
206
needs :
216
207
- prepare
217
208
- build
0 commit comments