Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What does "Container action is only supported on Linux" mean? #18

Open
dnedrow opened this issue Jan 22, 2024 · 3 comments
Open

What does "Container action is only supported on Linux" mean? #18

dnedrow opened this issue Jan 22, 2024 · 3 comments

Comments

@dnedrow
Copy link

dnedrow commented Jan 22, 2024

Given the error "Container action is only supported on Linux", I'm guessing this action won't work on a macOS runner?

Below is what I'm attempting. Should this work on a macOS runner? I'm not sure if I've just configured something wrong, or was expecting too much from the action.

#Test Template

Use the link(s) below to download artifacts created by this build.
  
* {{ .foourl | mdlink "Foo Artifact" }}
* {{ .barurl | mdlink "Bar Artifact" }}
      - name: Render template
        id: artifact-template
        uses: chuhlomin/render-template@v1.4
        with:
          template: .github/ACTION_TEMPLATES/artifact-download-template.md
          vars: |
            foourl: ${{ steps.artifact-upload-step-foo.outputs.artifact-url }}
            barurl: ${{ steps.artifact-upload-step-bar.outputs.artifact-url }}
@dnedrow
Copy link
Author

dnedrow commented Jan 22, 2024

OK, looking at the sources, it would appear this action will only work in a linux-runner workflow, so no macOS or Windows support. I can only surmise that this is due to this having been written in Go.

It would be nice if this were clarified in the README so people don't waste their time with the action.

@chuhlomin
Copy link
Owner

Go supports cross-compilation for Windows and MacOS, so it should be possible.
The more significant limitation is that it is a Docker action.
It seems like Docker is unavailable on the Windows and Apple silicon GitHub Actions runner.
If that helps, I can distribute this action as a binary file compiled for the required architecture.
Added note to README about that

@rwaight
Copy link

rwaight commented Apr 30, 2024

@dnedrow were you able to get the action to work with MacOS runners? It looks like Docker currently not work on macOS runners with ARM architecture, at least according to docker/actions-toolkit#317

There are some other related comments about using docker with MacOS runners:

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

No branches or pull requests

3 participants