mirror of
https://github.com/leozide/leocad
synced 2024-11-17 07:47:55 +01:00
Update appveyor.yml
This commit is contained in:
parent
f94ba6dc6d
commit
939d7cae9d
1 changed files with 21 additions and 4 deletions
25
appveyor.yml
25
appveyor.yml
|
@ -1,9 +1,9 @@
|
|||
version: '{branch}.{build}'
|
||||
skip_tags: true
|
||||
image:
|
||||
- Visual Studio 2019
|
||||
- Ubuntu1604
|
||||
- macos
|
||||
- Visual Studio 2019
|
||||
configuration: Release
|
||||
platform: x64
|
||||
|
||||
|
@ -61,19 +61,36 @@ for:
|
|||
- image: Ubuntu1604
|
||||
|
||||
before_build:
|
||||
- PATH=$PATH:$HOME/Qt/5.15
|
||||
- export PATH=$PATH:$HOME/Qt/5.15
|
||||
- export TRAVIS_TAG=%APPVEYOR_REPO_TAG_NAME%
|
||||
- export TRAVIS_REPO_SLUG=%APPVEYOR_REPO_NAME%
|
||||
- export TRAVIS_COMMIT=%APPVEYOR_REPO_COMMIT%
|
||||
|
||||
build_script:
|
||||
- qmake PREFIX=/usr
|
||||
- make
|
||||
|
||||
|
||||
after_build:
|
||||
- cp build/release/leocad .
|
||||
- export VERSION=$(git rev-parse --short HEAD)
|
||||
- zip LeoCAD-Linux-$VERSION-arm64.zip leocad
|
||||
- 'curl -s -H "Authorization: token $GITHUB_TOKEN" https://api.github.com/repos/leozide/leocad/commits/master -o repo.txt'
|
||||
- 'export REMOTE=$(grep -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."; travis_terminate 0; fi;
|
||||
- wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh
|
||||
- bash upload.sh LeoCAD*.zip
|
||||
|
||||
-
|
||||
matrix:
|
||||
only:
|
||||
- image: macos
|
||||
|
||||
before_build:
|
||||
- PATH=$PATH:$HOME/Qt/5.15
|
||||
- export PATH=$PATH:$HOME/Qt/5.15
|
||||
- export TRAVIS_TAG=%APPVEYOR_REPO_TAG_NAME%
|
||||
- export TRAVIS_REPO_SLUG=%APPVEYOR_REPO_NAME%
|
||||
- export TRAVIS_COMMIT=%APPVEYOR_REPO_COMMIT%
|
||||
|
||||
build_script:
|
||||
- qmake PREFIX=/usr
|
||||
|
|
Loading…
Reference in a new issue