ci/win: install MSYS2 packages through setup-msys2 (cached)
This commit is contained in:
parent
d18e280b1b
commit
b2cca8fbec
|
|
@ -50,16 +50,26 @@ jobs:
|
||||||
|
|
||||||
- uses: actions/checkout@v2
|
- 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
|
- name: Build and test
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
git clone https://github.com/steveicarus/ivtest.git
|
git clone https://github.com/steveicarus/ivtest.git
|
||||||
|
|
||||||
export msys2='cmd //C RefreshEnv.cmd '
|
export msys2='cmd //C RefreshEnv.cmd '
|
||||||
export msys2+='& set MSYS=winsymlinks:nativestrict '
|
export msys2+='& set MSYS=winsymlinks:nativestrict '
|
||||||
export msys2+='& C:\\msys64\\msys2_shell.cmd -defterm -no-start'
|
export msys2+='& C:\\msys64\\msys2_shell.cmd -defterm -no-start'
|
||||||
export mingw64="$msys2 -mingw64 -full-path -here -c "\"\$@"\" --"
|
export mingw64="$msys2 -mingw64 -full-path -here -c "\"\$@"\" --"
|
||||||
export msys2+=" -msys2 -c "\"\$@"\" --"
|
export msys2+=" -msys2 -c "\"\$@"\" --"
|
||||||
$msys2 pacman --sync --noconfirm --needed base-devel mingw-w64-x86_64-toolchain
|
|
||||||
$mingw64 ./autoconf.sh
|
$mingw64 ./autoconf.sh
|
||||||
$mingw64 ./configure
|
$mingw64 ./configure
|
||||||
$mingw64 make install
|
$mingw64 make install
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue