Skip to content

Use separate build cache per platform #49

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 3 additions & 10 deletions .github/workflows/docker.build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ jobs:
strategy:
matrix:
php: [ 8.1.31, 8.2.27, 8.3.16, 8.4.3 ]
# downgraded from latest (being 24.04) due to https://3.basecamp.com/3923521/buckets/6162023/card_tables/cards/8268321367
# runs-on: ubuntu-22.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -57,12 +55,7 @@ jobs:
- name: Set up QEMU
id: qemu
uses: docker/setup-qemu-action@v3
# commented, as tonistiigi/binfmt:latest has been updated. Remove, if it works.
#with:
# setup-qemu-action by default uses tonistiigi/binfmt:latest,
# which is out of date, see https://github.com/tonistiigi/binfmt/issues/165.
# This causes seg faults during build.
#image: tonistiigi/binfmt:qemu-v8.1.5

-
name: Set up Docker Buildx
id: buildx
Expand Down Expand Up @@ -91,8 +84,8 @@ jobs:
PHP_VERSION=${{ matrix.php }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
cache-from: type=gha,scope=php-${{ matrix.php }}-platform-${{ inputs.platform }}
cache-to: type=gha,mode=max,scope=php-${{ matrix.php }}-platform-${{ inputs.platform }}

announce:
runs-on: ubuntu-latest
Expand Down
Loading