mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-27 11:24:05 +00:00
Add appveyor scripts to test with MSYS2
This commit is contained in:
parent
29153ed503
commit
e269b86539
28
appveyor.yml
Normal file
28
appveyor.yml
Normal file
|
@ -0,0 +1,28 @@
|
|||
branches:
|
||||
only:
|
||||
- master
|
||||
- appveyor
|
||||
|
||||
environment:
|
||||
matrix:
|
||||
- MSYSTEM: MINGW64
|
||||
- MSYSTEM: MINGW32
|
||||
|
||||
shallow_clone: true
|
||||
test: off
|
||||
|
||||
install:
|
||||
# Update core packages
|
||||
- C:\msys64\usr\bin\pacman -Syyuu --noconfirm --noprogressbar
|
||||
# Update non-core packages
|
||||
- C:\msys64\usr\bin\pacman -Suu --noconfirm --noprogressbar
|
||||
# Install required MSYS2 packages
|
||||
- C:\msys64\usr\bin\pacman -S --noconfirm --noprogressbar --needed automake-wrapper make
|
||||
# Now MSYS2 is up to date, do the rest of the install from a bash script
|
||||
- C:\msys64\usr\bin\bash -lc "cd \"$APPVEYOR_BUILD_FOLDER\" && exec ./tools/appveyor-install.sh"
|
||||
|
||||
build_script:
|
||||
- C:\msys64\usr\bin\bash -lc "cd \"$APPVEYOR_BUILD_FOLDER\" && exec ./tools/appveyor-build.sh"
|
||||
|
||||
cache:
|
||||
- C:\msys64\var\cache\pacman\pkg
|
12
tools/appveyor-build.sh
Normal file
12
tools/appveyor-build.sh
Normal file
|
@ -0,0 +1,12 @@
|
|||
#!/usr/bin/bash
|
||||
set -e
|
||||
|
||||
export CC=gcc
|
||||
|
||||
./autogen.sh
|
||||
./configure \
|
||||
--host=$MINGW_CHOST \
|
||||
--build=$MINGW_CHOST \
|
||||
--target=$MINGW_CHOST \
|
||||
--disable-shared --enable-static
|
||||
make
|
10
tools/appveyor-install.sh
Normal file
10
tools/appveyor-install.sh
Normal file
|
@ -0,0 +1,10 @@
|
|||
#!/usr/bin/bash
|
||||
set -e
|
||||
|
||||
# Install build dependencies for kvazaar
|
||||
pacman -S --noconfirm --noprogressbar --needed \
|
||||
$MINGW_PACKAGE_PREFIX-gcc \
|
||||
$MINGW_PACKAGE_PREFIX-yasm
|
||||
|
||||
# Delete unused packages to reduce space used in the Appveyor cache
|
||||
pacman -Sc --noconfirm
|
Loading…
Reference in a new issue