-
Notifications
You must be signed in to change notification settings - Fork 41
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
Streamlining matrix builds #71
Comments
Hi @newhoggy! I think it's ok not to fail on non-Windows platforms but display a warning instead. With regard to Do you want to give it a try? |
Is there a way to make |
Note that currently setup-msys2 is not persistent between jobs. It works for multiple steps, but it needs to be executed in each job. From a technical point of view, rather than an alias, you might want to symlink e.g. For using msys2 in multiple step, set it as a global shell. See https://github.com/msys2/setup-msys2#usage |
FYI, in a custom action of mine I ended up creating a - name: Create bash-or-msys2
shell: bash
run: |
if [[ "$RUNNER_OS" == "Windows" ]]; then
powershell New-Item -ItemType SymbolicLink \
-Path "D:/a/_temp/setup-msys2/bash-or-msys2.cmd" \
-Target "D:/a/_temp/setup-msys2/msys2.cmd"
else
sudo ln -sf $(which bash) /usr/local/bin/bash-or-msys2
fi
...
- name: Upgrade ASDF to the Latest Version
shell: bash-or-msys2 {0}
run: |
if [[ "${{ inputs.asdf-version }}" != "latest" ]]; then
echo ::group::Installing ASDF ${{ inputs.asdf-version }}
ros install asdf/${{ inputs.asdf-version }}
else
echo ::group::Installing latest ASDF
ros install asdf
fi
echo ::endgroup:: Hope it helps! |
Option |
I'm interested in streamlining matrix builds that include Linux and MacOS.
Currently,
msys2/setup-msys2
fails on non-Windows platforms. It would be nice if there was an option to not fail and instead do nothing. This would mean I don't have to conditionally perform the installation.Additionally, having an extra
msys2do
shell command which internally runsmsys2 -c <cmd>
on Windows and runs<cmd>
directly everywhere else also helps.The text was updated successfully, but these errors were encountered: