msys2 / setup-msys2

GitHub Action to setup MSYS2
https://github.com/marketplace/actions/setup-msys2
MIT License
292 stars 40 forks source link

How to pass flags to pacboy? #231

Closed txtsd closed 1 year ago

txtsd commented 2 years ago
  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 commented 2 years ago

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

eine commented 1 year ago

@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
txtsd commented 1 year ago

Thank you!