Build mac os version with xcode 12.2 to start supporting mac os 11.

This commit is contained in:
Roman Telezhynskyi 2021-09-13 17:57:00 +03:00
parent 23ea2efe59
commit e56d601761
2 changed files with 15 additions and 2 deletions

View File

@ -32,6 +32,18 @@ jobs:
env: env:
- DEPLOY=true - DEPLOY=true
- LEGACY=false - LEGACY=false
- XCODE=xcode12.2
osx_image: xcode12_2
cache:
directories:
- "$HOME/Library/Caches/Homebrew"
- "/usr/local/Homebrew"
- os: osx
compiler: clang
env:
- DEPLOY=true
- LEGACY=false
- XCODE=xcode11
osx_image: xcode11 osx_image: xcode11
cache: cache:
directories: directories:
@ -42,6 +54,7 @@ jobs:
env: env:
- DEPLOY=true - DEPLOY=true
- LEGACY=true - LEGACY=true
- XCODE=xcode8
osx_image: xcode8 osx_image: xcode8
cache: cache:
directories: directories:

View File

@ -30,11 +30,11 @@ if [[ "$DEPLOY" == "true" ]]; then
fi fi
print_info "Start compressing."; print_info "Start compressing.";
tar -C $TRAVIS_BUILD_DIR/build/src/app/valentina/bin --exclude "*.DS_Store" -cvJf valentina-osx-${TRAVIS_COMMIT}${legacy_suffix}.tar.xz Valentina.app/; tar -C $TRAVIS_BUILD_DIR/build/src/app/valentina/bin --exclude "*.DS_Store" -cvJf valentina-osx-${XCODE}-${TRAVIS_COMMIT}${legacy_suffix}.tar.xz Valentina.app/;
check_failure "Unable to create an archive."; check_failure "Unable to create an archive.";
print_info "Start uploading."; print_info "Start uploading.";
python3 $TRAVIS_BUILD_DIR/scripts/deploy.py upload $ACCESS_TOKEN $TRAVIS_BUILD_DIR/build/valentina-osx-${TRAVIS_COMMIT}${legacy_suffix}.tar.xz "/0.7.x/Mac OS X/valentina-osx-${TRAVIS_COMMIT}${legacy_suffix}.tar.xz"; python3 $TRAVIS_BUILD_DIR/scripts/deploy.py upload $ACCESS_TOKEN $TRAVIS_BUILD_DIR/build/valentina-osx-${XCODE}-${TRAVIS_COMMIT}${legacy_suffix}.tar.xz "/0.7.x/Mac OS X/valentina-osx-${XCODE}-${TRAVIS_COMMIT}${legacy_suffix}.tar.xz";
check_failure "Unable to upload."; check_failure "Unable to upload.";
print_info "Successfully uploaded."; print_info "Successfully uploaded.";