This repository has been archived by the owner on Sep 18, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.appveyor.yml
58 lines (55 loc) · 2.12 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
version: 0.1.0.{build}
pull_requests:
do_not_increment_build_number: true
skip_branch_with_pr: true
environment:
matrix:
- appveyor_build_worker_image: Visual Studio 2019
PLATFORM: Win32
- appveyor_build_worker_image: Visual Studio 2019
PLATFORM: x64
- appveyor_build_worker_image: Ubuntu
GENERATORS: TGZ;STGZ
- appveyor_build_worker_image: macOS
GENERATORS: TGZ;STGZ
configuration: Release
install:
- sh: |
if [ "$CI_LINUX" == "false" ]; then
export PATH="$PATH:/Users/appveyor/.dotnet/tools"
fi
- |
dotnet tool install -g GitVersion.Tool --version 5.3.4
dotnet gitversion /output buildserver
- cmd: choco install innosetup
before_build:
- pwsh: |
"$env:GitVersion_MajorMinorPatch`n$env:GitVersion_SemVer`n$env:GitVersion_FullSemVer`n$env:GitVersion_BuildMetaData" | Out-File version.info
build_script:
- cmd: cmake -S "%APPVEYOR_BUILD_FOLDER%" -B "%APPVEYOR_BUILD_FOLDER%/.build" -DCPACK_GENERATOR="7Z;ZIP" -A %PLATFORM% -DCMAKE_C_FLAGS="/DWIN32 /D_WINDOWS /W4" -DBUILD_SHARED_LIBS=TRUE
- sh: cmake -S "$APPVEYOR_BUILD_FOLDER" -B "$APPVEYOR_BUILD_FOLDER/.build" -DCPACK_GENERATOR="$GENERATORS" -DCPACK_SOURCE_GENERATOR="TGZ;ZIP" -DCMAKE_BUILD_TYPE=$CONFIGURATION -DCMAKE_C_FLAGS="-Wall -Wextra"
- cmd: cmake --build "%APPVEYOR_BUILD_FOLDER%/.build" --config %CONFIGURATION% -j 4
- sh: cd "$APPVEYOR_BUILD_FOLDER/.build" && make -j4
test_script:
- cmd: |
cd "%APPVEYOR_BUILD_FOLDER%\.build"
ctest -C %CONFIGURATION%
cmake --build . --config %CONFIGURATION% --target create-installer
cmake --build . --config %CONFIGURATION% --target package
- sh: |
cd "$APPVEYOR_BUILD_FOLDER/.build"
make test
make package/fast && make package_source
deploy_script:
- ps: echo "Hello PowerShell"
- pwsh: echo "Hello PowerShell Core"
- cmd: echo "Hello CMD"
- sh: echo "Hello ShellScript"
artifacts:
- path: .build/*.7z
- path: .build/*.sh
- path: .build/*.tar.gz
- path: .build/*.zip
- path: .build/*.pkg
- path: .build/Output/*.exe
- path: version.info # If someone want to use git and compile with correct version