Update appveyor.yml

This commit is contained in:
Leonardo Zide 2022-10-02 14:05:06 -07:00 committed by GitHub
parent 01afc73ac4
commit f94ba6dc6d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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*