mirror of
https://github.com/nektos/act.git
synced 2026-04-26 09:25:54 +03:00
[GH-ISSUE #2342] Bug: Works in github actions but not in act runner. binfmt_misc not enabled (Log Provided) #1079
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#1079
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 @mofosyne on GitHub (May 29, 2024).
Original GitHub issue: https://github.com/nektos/act/issues/2342
Just recently added ci to llamafile, but would like the capability to test this setup locally, but it's not working as it appears that the binfmt_misc is missing.
Bug report info
Command used with act
Describe issue
To be able to cleanly and successfully run
act -j ubuntu-focal-makeas the same workflow is already working in github actions itself.Seems like github actions environment has binfmt_misc enabled by default
Link to GitHub repository
github.com/Mozilla-Ocho/llamafile@31419d0b71Workflow content
Relevant log output
Additional information
No response
@mofosyne commented on GitHub (May 29, 2024):
If you check the CI log in here https://github.com/Mozilla-Ocho/llamafile/actions/runs/9281962364/job/25538973568 you can observe that the failing step
echo ':APE:M::MZqFpD::/usr/bin/ape:' > /proc/sys/fs/binfmt_misc/registerpasses in github actions in stage 'Setup cosmocc and ape loader'@Fryguy commented on GitHub (Jun 14, 2024):
I see bimfmt_misc in my image when I docker run a bash prompt into it.
I'm not an expert on binfmt_misc, but I have hit issues before, particularly with running with images for a different architecture (such as ppc64le or s390x). In those cases, the problem was that binfmt emulators were not installed on the host. I'm a Mac user, and Docker Desktop had this built-in, but when I switched to using colima, it turned out they didn't have binfmt installed by default. The command to add that into your host is [ref]
@mofosyne commented on GitHub (Jun 19, 2024):
So I ran that command then attempted to run act again with the same script above, but it still has the same issue. Is there something else you did to make neok act use this binfmt as the base perhaps? @Fryguy
@github-actions[bot] commented on GitHub (Dec 17, 2024):
Issue is stale and will be closed in 14 days unless there is new activity