unity-return-license icon indicating copy to clipboard operation
unity-return-license copied to clipboard

return-license does not support the macos runner

Open oshaughnessy opened this issue 3 years ago • 2 comments

Context

Running game-ci/unity-return-license@main on the macos-latest runner. Right now I get this error when I try to run it:

Error: Container action is only supported on Linux

Suggested solution

I would like the action to support running on macOS, so I can manually return a license allocated to the GitHub macOS runners that may consume licenses and fail to return them.

Considered alternatives

Tried returning the license on an Ubuntu runner, but I got blocked at https://github.com/game-ci/unity-return-license/issues/20 when exploring this avenue.

Additional details

See also:

  • https://github.com/game-ci/unity-builder/issues/358

oshaughnessy avatar Mar 22 '22 21:03 oshaughnessy

I think this may be a limitation of GitHub. I'm still digging through docs, but the table here -- https://docs.github.com/en/actions/creating-actions/about-custom-actions#types-of-actions -- says that Docker actions are only supported on Linux, so I may just be out of luck for now.

oshaughnessy avatar Mar 24 '22 21:03 oshaughnessy

Although... this gives me hope: https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#runsstepsuses. I think we may be able to create a composite action that runs locally if it's on macos or in Docker otherwise.

oshaughnessy avatar Mar 24 '22 21:03 oshaughnessy