-
Notifications
You must be signed in to change notification settings - Fork 7
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
Multi-line 'run' commands #8
Comments
Yeah, actually I think it'd be great to completely bypass the Now that I think about this, shouldn't setup-msys2 simply overwrite the default shell? I think when a user adds a steps:
- uses: numworks/setup-msys2@v1
- uses: actions/checkout@v1
- run: pacman -S --noconfirm whatever
- run: make my_target |
I think that you mean the same I wrote in the example above (
The default shell in windows is - shell: bash
run: |
msys2do <command_a>
<command_b> or - shell: bash --noprofile --norc -eo pipefail "msys2do {0}"
run: |
<command_a>
<command_b> and the example above. As a matter of fact, before using this extension, I was installing MSYS2 through chocolatey and then using: On the one hand, I think that we can add On the other hand, Of course, if I am misunderstanding anything and it is already possible to set a default for |
Here is an example of my use case of wanting to closely integrate CI builds in MSYS2:
Most of the examples of the action being used that I could find were running a bash script using Do others have this use case as well and would you be interested in supporting this with your action? Is it possible for us to setup the PATH and shell so that we can just directly run commands? |
I'm closing this because #21 (which is part of eine/setup-msys2) has been tested for some months and it works as expected. |
Currently, it is not possible to provide multi-line 'run' commands as arguments to msys2do:
Alternatives are to prepend each row with
msys2do
, or to put all the commands in a helperrun.sh
file and runmsys2do ./run.sh
.It would be interesting to investigate alternatives, such as (untested):
The text was updated successfully, but these errors were encountered: