setup-msys2 icon indicating copy to clipboard operation
setup-msys2 copied to clipboard

How to pass flags to pacboy?

Open txtsd opened this issue 2 years ago • 1 comments

  strategy:
    fail-fast: false
    matrix:
      sys: [ MINGW64, MINGW32, UCRT64, CLANG64 ]
  steps:
  - uses: msys2/setup-msys2@v2
    with:
      msystem: ${{matrix.sys}}
      install: >-
        git
        base-devel
      pacboy: >-
        openssl:p

In this example, what if I wanted to invoke pacboy as such: pacboy --noconfirm -S --needed --cachedir $(cygpath "${{ github.workspace }}/${{ matrix.msystem }}")

txtsd avatar Jun 01 '22 11:06 txtsd

Use cache: true where? I can't find any documentation for it.

txtsd avatar Jun 01 '22 13:06 txtsd

@txtsd see https://github.com/msys2/setup-msys2/blob/main/main.js#L316 and https://github.com/msys2/setup-msys2/blob/main/main.js#L213. The content of field pacboy is appended to pacboy --noconfirm -S --needed. Therefore, the following should work:

  strategy:
    fail-fast: false
    matrix:
      sys: [ MINGW64, MINGW32, UCRT64, CLANG64 ]
  steps:
  - uses: msys2/setup-msys2@v2
    with:
      msystem: ${{matrix.sys}}
      install: >-
        git
        base-devel
      pacboy: >-
        --cachedir "$(cygpath '${{ github.workspace }}/${{ matrix.msystem }}')"
        openssl:p

eine avatar Nov 25 '22 13:11 eine

Thank you!

txtsd avatar Nov 25 '22 13:11 txtsd