leocad/appveyor.yml

49 lines
1.6 KiB
YAML
Raw Normal View History

2020-09-13 20:31:31 +02:00
version: '{branch}.{build}'
skip_tags: true
image:
2020-09-13 20:45:33 +02:00
- Visual Studio 2019
2020-09-13 21:23:29 +02:00
configuration: Release
platform: x64
2020-09-13 21:01:48 +02:00
2020-10-19 03:13:08 +02:00
environment:
GITHUB_TOKEN:
secure: +EZPzYX4wUEc6MYg4kBLx9TogAqeeeWUPgtEW3VtAJATrBtxwpuOQIHrrR4hbc7a
2020-10-19 02:50:57 +02:00
before_build:
- call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"
2020-12-16 02:24:59 +01:00
- set PATH=C:\Qt\5.15\msvc2019_64\bin;%PATH%
2020-10-19 02:50:57 +02:00
- git rev-parse --short HEAD > version.txt
- set /p VERSION= < version.txt
- qmake -v
- qmake -tp vc
2020-10-19 03:03:12 +02:00
2020-10-19 02:50:57 +02:00
build:
project: leocad.vcxproj
verbosity: minimal
2020-10-19 03:03:12 +02:00
2020-10-19 02:50:57 +02:00
after_build:
- 7z a symbols.zip build/release/leocad.exe build/release/leocad.pdb
- mkdir appdir
- copy build\release\leocad.exe appdir
- copy docs\readme.txt appdir
- appveyor DownloadFile https://github.com/leozide/leocad/releases/download/v19.07.1/Library-Linux-14384.zip -FileName library.zip
- 7z e library.zip
- copy library.bin appdir\\library.bin
- appveyor DownloadFile https://github.com/leozide/povray/releases/download/continuous/povconsole32-sse2.exe -FileName appdir\povconsole32-sse2.exe
- windeployqt appdir\leocad.exe
- copy tools\setup\leocad.nsi .
- copy tools\setup\setup.ico .
- 'copy "%VCToolsRedistDir%\vcredist_x64.exe" appdir'
- '"C:\Program Files (x86)\NSIS\makensis.exe" /V4 /DX64 "/XOutFile LeoCAD-Windows-%VERSION%.exe" leocad.nsi'
2020-10-19 03:03:12 +02:00
- set TRAVIS_TAG=%APPVEYOR_REPO_TAG_NAME%
- set TRAVIS_REPO_SLUG=%APPVEYOR_REPO_NAME%
- set TRAVIS_COMMIT=%APPVEYOR_REPO_COMMIT%
- appveyor DownloadFile https://github.com/probonopd/uploadtool/raw/master/upload.sh
2020-11-23 18:29:27 +01:00
- if not defined APPVEYOR_PULL_REQUEST_NUMBER (bash upload.sh LeoCAD*.exe)
2020-10-19 03:03:12 +02:00
2020-10-19 02:50:57 +02:00
artifacts:
- path: symbols.zip
name: symbols
- path: LeoCAD-Windows-$(VERSION).exe
name: leocad