mirror of
https://github.com/leozide/leocad
synced 2025-02-11 20:48:31 +01:00
Update appveyor.yml
This commit is contained in:
parent
01afc73ac4
commit
f94ba6dc6d
1 changed files with 77 additions and 34 deletions
43
appveyor.yml
43
appveyor.yml
|
@ -2,6 +2,8 @@ version: '{branch}.{build}'
|
||||||
skip_tags: true
|
skip_tags: true
|
||||||
image:
|
image:
|
||||||
- Visual Studio 2019
|
- Visual Studio 2019
|
||||||
|
- Ubuntu1604
|
||||||
|
- macos
|
||||||
configuration: Release
|
configuration: Release
|
||||||
platform: x64
|
platform: x64
|
||||||
|
|
||||||
|
@ -9,6 +11,12 @@ environment:
|
||||||
GITHUB_TOKEN:
|
GITHUB_TOKEN:
|
||||||
secure: ZaApxtWM3JA1AdJqs2pv+BCE5XIUrrVKXNy05q8f6f4zRZ7H/lMEJ6gZ1o2yp6NT
|
secure: ZaApxtWM3JA1AdJqs2pv+BCE5XIUrrVKXNy05q8f6f4zRZ7H/lMEJ6gZ1o2yp6NT
|
||||||
|
|
||||||
|
for:
|
||||||
|
-
|
||||||
|
matrix:
|
||||||
|
only:
|
||||||
|
- image: Visual Studio 2019
|
||||||
|
|
||||||
before_build:
|
before_build:
|
||||||
- call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"
|
- call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"
|
||||||
- set PATH=C:\Qt\5.15\msvc2019_64\bin;%PATH%
|
- set PATH=C:\Qt\5.15\msvc2019_64\bin;%PATH%
|
||||||
|
@ -46,3 +54,38 @@ artifacts:
|
||||||
name: symbols
|
name: symbols
|
||||||
- path: LeoCAD-Windows-$(VERSION).exe
|
- path: LeoCAD-Windows-$(VERSION).exe
|
||||||
name: leocad
|
name: leocad
|
||||||
|
|
||||||
|
-
|
||||||
|
matrix:
|
||||||
|
only:
|
||||||
|
- image: Ubuntu1604
|
||||||
|
|
||||||
|
before_build:
|
||||||
|
- PATH=$PATH:$HOME/Qt/5.15
|
||||||
|
|
||||||
|
build_script:
|
||||||
|
- qmake PREFIX=/usr
|
||||||
|
- make
|
||||||
|
|
||||||
|
-
|
||||||
|
matrix:
|
||||||
|
only:
|
||||||
|
- image: macos
|
||||||
|
|
||||||
|
before_build:
|
||||||
|
- PATH=$PATH:$HOME/Qt/5.15
|
||||||
|
|
||||||
|
build_script:
|
||||||
|
- qmake PREFIX=/usr
|
||||||
|
- make
|
||||||
|
|
||||||
|
after_build:
|
||||||
|
- cd build/release
|
||||||
|
- macdeployqt LeoCAD.app -dmg
|
||||||
|
- mv LeoCAD.dmg LeoCAD-macOS-$(git rev-parse --short HEAD).dmg
|
||||||
|
- 'curl -s -H "Authorization: token $GITHUB_TOKEN" https://api.github.com/repos/leozide/leocad/commits/master -o repo.txt'
|
||||||
|
- 'export REMOTE=$(ggrep -Po ''(?<=: \")(([a-z0-9])\w+)(?=\")'' -m 1 repo.txt)'
|
||||||
|
- export LOCAL=$(git rev-parse HEAD)
|
||||||
|
- if [[ "$REMOTE" != "$LOCAL" ]]; then echo "Build no longer current. $REMOTE vs $LOCAL - aborting upload."; exit 0; fi;
|
||||||
|
- wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh
|
||||||
|
- bash upload.sh LeoCAD*.dmg*
|
||||||
|
|
Loading…
Add table
Reference in a new issue