Skip to content

Commit c6c6230

Browse files
authored
Merge pull request #515 from reload/arm-builds
Build linux/arm64 images on arm runner
2 parents 202f68b + 1a42960 commit c6c6230

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/workflows/push.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,18 @@ jobs:
1717
run: echo "php_versions=$(make _versions)" >> "$GITHUB_ENV"
1818
build:
1919
name: PHP
20-
runs-on: ubuntu-24.04
2120
needs: php-versions
2221
strategy:
2322
fail-fast: false
2423
matrix:
2524
php: ${{ fromJSON(needs.php-versions.outputs.matrix) }}
2625
platform: [linux/arm64, linux/amd64]
26+
include:
27+
- platform: linux/arm64
28+
runner: ubuntu-24.04-arm
29+
- platform: linux/amd64
30+
runner: ubuntu-24.04
31+
runs-on: ${{ matrix.runner }}
2732
steps:
2833
- uses: actions/checkout@v6
2934
- name: Set up QEMU
@@ -49,11 +54,9 @@ jobs:
4954
org.opencontainers.image.revision=${{ github.sha }}
5055
tags: |
5156
ghcr.io/${{ github.repository }}:${{ matrix.php }}
52-
load: ${{ (matrix.platform == 'linux/amd64') }}
57+
load: true
5358
- uses: e1himself/[email protected]
54-
if: ${{ (matrix.platform == 'linux/amd64') }}
5559
- name: Test PHP ${{ matrix.php }}
56-
if: ${{ (matrix.platform == 'linux/amd64') }}
5760
run: |
5861
# Sleep a bit to ensure that PHP-FPM has time to start up.
59-
GOSS_SLEEP=15 dgoss run -e GOSS_VARS_INLINE='php_version: "${{ matrix.php }}"' ghcr.io/${{ github.repository }}:${{ matrix.php }}
62+
GOSS_SLEEP=15 dgoss run --pull=never -e GOSS_VARS_INLINE='php_version: "${{ matrix.php }}"' ghcr.io/${{ github.repository }}:${{ matrix.php }}

0 commit comments

Comments
 (0)