ci/win: install MSYS2 packages through setup-msys2 (cached)

This commit is contained in:
umarcor 2020-11-30 02:37:13 +01:00
parent d18e280b1b
commit b2cca8fbec
1 changed files with 11 additions and 1 deletions

View File

@ -50,16 +50,26 @@ jobs:
- uses: actions/checkout@v2
- uses: msys2/setup-msys2@v2
with:
release: false
msystem: MINGW64
install: >
base-devel
mingw-w64-x86_64-toolchain
update: true
- name: Build and test
shell: bash
run: |
git clone https://github.com/steveicarus/ivtest.git
export msys2='cmd //C RefreshEnv.cmd '
export msys2+='& set MSYS=winsymlinks:nativestrict '
export msys2+='& C:\\msys64\\msys2_shell.cmd -defterm -no-start'
export mingw64="$msys2 -mingw64 -full-path -here -c "\"\$@"\" --"
export msys2+=" -msys2 -c "\"\$@"\" --"
$msys2 pacman --sync --noconfirm --needed base-devel mingw-w64-x86_64-toolchain
$mingw64 ./autoconf.sh
$mingw64 ./configure
$mingw64 make install