forked from FarGroup/FarManager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor-clang.yml
69 lines (54 loc) · 1.62 KB
/
appveyor-clang.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 2022
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 ..
- call "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvars%bit%.bat"
- set Path=C:\Program Files\LLVM\bin;%Path%
environment:
matrix:
- platform: x64
configuration: Debug
ADD_MAKE: DEBUG=1
NAME_ADD: .Debug
bit: 64
- platform: x64
configuration: Release
bit: 64
build_script:
#print version
- clang --version
#build Far
- cd far
- set FARMANAGER_BUILD_TYPE=VS_RELEASE
- set FARMANAGER_SCM_REVISION=%APPVEYOR_REPO_COMMIT%
- nmake CLANG=1 %ADD_MAKE% /f makefile_vc
- cd ..
#build Plugins
- cd plugins
- # TODO
- cd ..
test: off
after_build:
#archive
- cd far\%configuration%.64.vc.clang
#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 -m0=LZMA -mf=BCJ2 -mx9 "%APPVEYOR_BUILD_FOLDER%\%NAME_PREFIX%.7z" -x!obj\
- cd ..\..
artifacts:
- path: $(NAME_PREFIX).7z
name: Far Manager