Skip to content

Add support for multiple platforms in Docker build - #368

Open
ananich wants to merge 1 commit into
mar10:masterfrom
ananich:master
Open

ananich wants to merge 1 commit into
mar10:masterfrom
ananich:master

Conversation

@ananich

@ananich ananich commented Aug 16, 2026

Copy link
Copy Markdown

Not just PC, but Mac also

@mar10

mar10 commented Aug 16, 2026

Copy link
Copy Markdown
Owner

Yes, I am aware of this feature, however

GitHub's standard runners are x86_64, so building for linux/amd64 alone is
fast — it compiles natively with no overhead.
When you add linux/arm64 or linux/arm/v7, GitHub Actions has to emulate those architectures using QEMU.
This is noticeably slower because every instruction is being translated on the fly.
Depending on your image, ARM builds can easily take 3–10x longer than a native amd64 build.

So it is slow (and uses up more action time). I would rather like to modify the workflow to do this only on releases

@ananich

ananich commented Aug 16, 2026

Copy link
Copy Markdown
Author

Make sense. I'd say that Docker images are quite heavy, so it makes sense to build both amd64 and arm64 only on releases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants