forked from fontforge/fontforge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
62 lines (60 loc) · 2.32 KB
/
.appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
platform:
- x64
branches:
only:
- master
- /release\/.*/
environment:
global:
MBASH: C:\msys64\usr\bin\sh -lc
MSYS2_FC_CACHE_SKIP: true
matrix:
- MSYSTEM: MINGW32
MBITS: 32
for:
-
branches:
only:
- /release\/.*/
environment:
global:
APPVEYOR_CONFIG_PROD: 1
matrix: # This extends the default, so 32 bit is still built
- MSYSTEM: MINGW64
MBITS: 64
clone_depth: 10
#The cache is slightly slower than just downloading the files
#cache:
# - 'C:\msys64\var\cache\pacman\pkg'
install:
- git clone --depth=1 --branch=master https://github.com/fontforge/fontforgebuilds.git
# These steps will update msys2 to the latest version
# Run unconditionally if builds fail because of pacman not installing dependencies due to version conflicts
- >-
if "%APPVEYOR_REPO_BRANCH:~0,8%"=="release/"
move C:\msys64 C:\msys64_old &&
curl -ko msys2.tar.xz http://repo.msys2.org/distrib/x86_64/msys2-base-x86_64-20190524.tar.xz &&
7z x -so msys2.tar.xz | 7z x -si -ttar &&
move msys64 C:\ && del msys2.tar.xz &&
call %MBASH% "ls" &&
call %MBASH% "pacman -Syuu --noconfirm" &&
call %MBASH% "pacman -Suu --noconfirm" &&
call %MBASH% "pacman -Suu --noconfirm"
- call %MBASH% "cd $APPVEYOR_BUILD_FOLDER/fontforgebuilds; exec 0</dev/null; ./ffbuild.sh --appveyor --depsonly"
build_script:
- call %MBASH% "cd $APPVEYOR_BUILD_FOLDER/fontforgebuilds; exec 0</dev/null; ./ffbuild.sh --appveyor"
- call %MBASH% "cd $APPVEYOR_BUILD_FOLDER/fontforgebuilds; exec 0</dev/null; FFPATH=`cygpath -m $APPVEYOR_BUILD_FOLDER` ./make-portable-package.sh appveyor"
- if "%APPVEYOR_REPO_BRANCH:~0,8%"=="release/" cd "%APPVEYOR_BUILD_FOLDER%/fontforgebuilds/fontforge-setup" && "C:\Program Files (x86)\Inno Setup 5\ISCC.exe" -Qp fontforgesetup.iss
test: off
artifacts:
- path: fontforgebuilds\*-appveyor.7z
name: FontForge $(MBITS)-bit build
- path: fontforgebuilds\*-debugging-symbols.7z
name: FontForge $(MBITS)-bit debugging symbols
- path: fontforgebuilds\fontforge-setup\*.exe
name: FontForge $(MBITS)-bit setup
on_failure:
- cat build/CMakeCache.txt || true
- cat build/CMakeFiles/CMakeOutput.log || true
- cat build/Testing/Temporary/LastTest.log || true
- cat build/build.ninja || true