setup-msys2
setup-msys2 copied to clipboard
How to pass flags to pacboy?
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 }}")
Use cache: true
where? I can't find any documentation for it.
@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
Thank you!