mirror of
https://github.com/nektos/act.git
synced 2026-04-26 01:15:51 +03:00
[GH-ISSUE #1509] RUNNER_OS should return macOS instead of darwin and wrong RUNNER_ARCH on MacOS M1 #769
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#769
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 @x-yurii-uvarov on GitHub (Dec 14, 2022).
Original GitHub issue: https://github.com/nektos/act/issues/1509
Bug report info
Command used with act
Describe issue
Some Github actions depend on the
RUNNER_OSand expect one of the defined values according to the https://docs.github.com/en/actions/learn-github-actions/environment-variables#default-environment-variables.For example, flutter-action uses
RUNNER_OSto build a link to the flutter binary.expected result: macOS,
actual result: darwin
Also, RUNNER_ARCH should be arm64(or x64 using rosetta at least) but it provides amd64, which is definitely wrong.
Link to GitHub repository
No response
Workflow content
Relevant log output
Additional information
@ChristopherHX commented on GitHub (Dec 14, 2022):
@x-yurii-uvarov Could you please check if the arm64 version of act https://github.com/nektos/act/releases/download/v0.2.34/act_Darwin_arm64.tar.gz has the correct RUNNER_ARCH ?
You are right, the RUNNER_OS needs a remapping for macOS.
@ChristopherHX commented on GitHub (Dec 14, 2022):
FYI Possible values for
RUNNER_OSof act are alsofreebsd,openbsd,plan9,dragonfly,solarisandandroid.If you run
RUNNER_OS=macOS act ...you have the correct RUNNER_OS without a patch@x-yurii-uvarov commented on GitHub (Dec 15, 2022):
I have uninstalled the brew version of the
actand tried yours, and RUNNER_ARCH changed from amd64 to arm64.Also,
RUNNER_OS=macOS act ...helped to change RUNNER_OS, and I can use it as a workaround for now.Thank you @ChristopherHX! Both of your suggestions work!