question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Streamlining matrix builds

See original GitHub issue

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 runs msys2 -c <cmd> on Windows and runs <cmd> directly everywhere else also helps.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
iamFIREcrackercommented, Oct 26, 2021

FYI, in a custom action of mine I ended up creating a bash-or-msys2 symlink pointing to bash on Linux / Mac OS, and msys2.cmd on Windows; thanks to that, and the fact that I used it as shell parameter for some of my action steps (i.e. shell: bash-or-msys2 {0}), I saved myself from duplicating a bunch of steps simply because it’s still not possible to inject shell to composite action (see: that https://github.com/actions/runner/issues/835).

    - 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!

0reactions
einecommented, Nov 8, 2021

Option platform-check-severity was added in v2.6.0. See #172 and https://github.com/msys2/setup-msys2/blob/master/CHANGELOG.md#260---20211103.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Best Kodi 19 Matrix Builds in 2021 [Working no Buffering]
This page is the complete and updated list of best Kodi builds that work on the latest Kodi 19 Matrix. These builds work...
Read more >
23 Best Kodi Builds in Jan 2023 (Added Kodi 19 Builds)
Kodi builds help set up Kodi by turning it into an ultimate streaming center. ... Atomic Matrix Kodi build is lightweight and runs...
Read more >
10+ Best Kodi Builds in December 2022 (New Builds Added)
These builds provide you with a streamlined Kodi experience that makes using ... The best Kodi builds listed below are all compatible with...
Read more >
Best Kodi 19 Matrix Builds {Latest Updated} : January 2023
You get many categories and streaming options, like Movies, TV Shows, Sports, etc., on matrix Build. Here is the guide. How to Install...
Read more >
Top 5 Best Kodi 19.5 Matrix Builds (Updated January 2023)
Below are the Best Kodi 19.5 Matrix Builds – January 2023: · 1. Ezzermacs Build – · 2. Ghetto Astronaut Build – ·...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found