mirror of
https://github.com/nektos/act.git
synced 2026-04-26 09:25:54 +03:00
[GH-ISSUE #2764] Same container image started multiple times using runs-on with matrix strategy #1253
Labels
No labels
area/action
area/cli
area/docs
area/image
area/runner
area/workflow
backlog
confirmed/not-planned
kind/bug
kind/discussion
kind/external
kind/feature-request
kind/question
meta/duplicate
meta/invalid
meta/need-more-info
meta/resolved
meta/wontfix
meta/workaround
needs-work
pull-request
review/not-planned
size/M
size/XL
size/XXL
stale
stale-exempt
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/act#1253
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @cedws on GitHub (May 19, 2025).
Original GitHub issue: https://github.com/nektos/act/issues/2764
Bug report info
Command used with act
Describe issue
When using a matrix strategy to set the runner (
runs-on) dynamically and passing two separate images for these runners with-P, the same container is created twice. I would expect one amd64 and one arm64 container to be created.In my test workflow, sometimes an amd64 runner container is created twice, sometimes arm64 is created twice, it seems to be random.
Link to GitHub repository
No response
Workflow content
Relevant log output
Additional information
No response
@cupid5trick commented on GitHub (Jul 26, 2025):
It seems act itself is doing right: starts a container and run the job for each of the os matrix. I guess you are unsatisfied about the two job all pulled ubuntu-24.04-arm64, but your host arch is arm64. So act running on docker itself cannot fully support amd64 arch. It's different from github actions which applies full virtualization.
Is it correct?
@MadManRises commented on GitHub (Feb 17, 2026):
I am facing a very similar issue. Using a matrix strategy like this:
The jobs are always either both run on Windows or on Ubuntu. This looks like some sort of concurrency issue to me, where both jobs write/read the same variable cache.
Also, not necessarily the same issue, but this comment seems to indicate a very similar issue:
https://github.com/nektos/act/issues/5880#issuecomment-3144401224