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

github-custom-runners does not support arrays #1752

Open
FreeMasen opened this issue Feb 7, 2025 · 0 comments
Open

github-custom-runners does not support arrays #1752

FreeMasen opened this issue Feb 7, 2025 · 0 comments

Comments

@FreeMasen
Copy link
Contributor

According to the GHA docs

You can provide runs-on as:

  • A single string
  • A single variable containing a string
  • An array of strings, variables containing strings, or a combination of both
  • A key: value pair using the group or labels keys

If you specify an array of strings or variables, your workflow will execute on any runner that matches all of the specified runs-on values.

but currently using the following will fail

[build.github-custom-runners]
x86_64-unknown-linux-gnu = ["self-hosted", "linux", "x64", "gpu"]

will fail with the following output

cargo dist generate

  × failed to parse TOML
  ╰─▶ TOML parse error at line 20, column 28
         |
      20 | x86_64-unknown-linux-gnu = ["self-hosted", "linux", "x64", "gpu"]
         |                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      data did not match any variant of untagged enum StringLikeOr
      
    ╭─[/Users/rfm/projects/changelog-builder/dist-workspace.toml:20:28]
 19 │ [dist.github-custom-runners]
 20 │ x86_64-unknown-linux-gnu = ["self-hosted", "linux", "x64", "gpu"]
    ·                            ──────────────────────────────────────
    ╰────
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

1 participant