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

feat: allow to restrict on which OSes actions allowed to run #11

Closed
norskeld opened this issue Aug 14, 2022 · 1 comment
Closed

feat: allow to restrict on which OSes actions allowed to run #11

norskeld opened this issue Aug 14, 2022 · 1 comment
Assignees
Labels
feat New feature or request

Comments

@norskeld
Copy link
Owner

norskeld commented Aug 14, 2022

Could be useful to allow specifying OS requirements, both on single actions and suites. Allowed OS values will map to std::env::consts::OS + explicit "all" (which should be the default).

With single actions:

actions {
  run "command" os="all"
  run "command" os="windows"
  run "command" os="linux"
}

With suites:

actions {
  suite "init os="all" { ... }
  suite "win-specific" os="windows" { ... }
}

With actions in suites (overrides value defined in a suite node):

actions {
  suite "init" os="all" {
    run "command" os="macos"
    run "command" os="windows"
  }
}
@norskeld norskeld added the feat New feature or request label Aug 14, 2022
@norskeld norskeld self-assigned this Aug 14, 2022
@norskeld norskeld changed the title feat(actions): allow to restrict OSes actions allowed to run on feat: allow to restrict OSes actions allowed to run on Aug 14, 2022
@norskeld norskeld changed the title feat: allow to restrict OSes actions allowed to run on feat: allow to restrict on which OSes actions allowed to run on Aug 15, 2022
@norskeld norskeld changed the title feat: allow to restrict on which OSes actions allowed to run on feat: allow to restrict on which OSes actions allowed to run Aug 15, 2022
@norskeld
Copy link
Owner Author

Closing in favor of #16.

@norskeld norskeld closed this as not planned Won't fix, can't repro, duplicate, stale Mar 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants