forked from FarGroup/FarManager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor-gcc.yml
69 lines (54 loc) · 1.7 KB
/
appveyor-gcc.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
63
64
65
66
67
68
69
version: 3.0.{branch}.{build}
branches:
only:
- master
skip_tags: true
skip_non_tags: false
max_jobs: 8
image: Visual Studio 2019
init:
- git config --global core.autocrlf true
clone_folder: c:\projects\FarManager
shallow_clone: true
clone_depth: 1
install:
- cd far && for /f "tokens=1,2,4 delims=, " %%i in ('tools\m4 -P farversion.inc.m4') do appveyor UpdateBuild -Version %%i.%%j.%%k.%APPVEYOR_BUILD_NUMBER% && cd ..
#- appveyor-retry choco install mingw
#- set Path=C:\ProgramData\chocolatey\lib\mingw\tools\install\mingw64\bin;%Path%
- set Path=C:\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin;%Path%
environment:
matrix:
- platform: x64
configuration: Debug
ADD_MAKE: DEBUG=1 DIRBIT=64
NAME_ADD: .Debug
- platform: x64
configuration: Release
ADD_MAKE: DIRBIT=64
build_script:
#print version
- gcc --version
#build Far
- cd far
- set FARMANAGER_BUILD_TYPE=VS_RELEASE
- set FARMANAGER_SCM_REVISION=%APPVEYOR_REPO_COMMIT%
- mingw32-make -j4 %ADD_MAKE% -f makefile_gcc
- cd ..
#build Plugins
- cd plugins
- mingw32-make -j4 %ADD_MAKE% -f makefile_all_gcc
- cd ..
test: off
after_build:
#archive
- cd far\%configuration%.64.gcc
#set NAME_PREFIX variable as otherwise it is not available when artifacts are collected
- set NAME_PREFIX="Far%NAME_ADD%.%platform%.%appveyor_build_version%.%APPVEYOR_REPO_COMMIT%"
- appveyor SetVariable -Name NAME_PREFIX -Value "%NAME_PREFIX%"
#archive Far
#save artifacts only for release as we keep on reaching the appveyor limit
- if "%configuration%" == "Release" 7z a "%APPVEYOR_BUILD_FOLDER%\%NAME_PREFIX%.7z" -x!obj\
- cd ..\..
artifacts:
- path: $(NAME_PREFIX).7z
name: Far Manager