Update appveyor.yml

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

View file

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