diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-09-17 00:56:18 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-09-19 23:20:15 +0300 |
commit | f834fe16f68369653e576dea7bac47d36e77e364 (patch) | |
tree | 33969c5ec4b59a317987d4f71d0edac213cbca42 /tools/ci | |
parent | 111670f3145dd2e388daf4867955309d056fee75 (diff) | |
download | manaverse-f834fe16f68369653e576dea7bac47d36e77e364.tar.gz manaverse-f834fe16f68369653e576dea7bac47d36e77e364.tar.bz2 manaverse-f834fe16f68369653e576dea7bac47d36e77e364.tar.xz manaverse-f834fe16f68369653e576dea7bac47d36e77e364.zip |
Add macosx builds with azure pipelines.
Diffstat (limited to 'tools/ci')
-rwxr-xr-x | tools/ci/jobs/xcode.sh | 11 | ||||
-rw-r--r-- | tools/ci/templates/azure/macosx.yml | 17 |
2 files changed, 28 insertions, 0 deletions
diff --git a/tools/ci/jobs/xcode.sh b/tools/ci/jobs/xcode.sh new file mode 100755 index 000000000..81bb0ff8d --- /dev/null +++ b/tools/ci/jobs/xcode.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +uname -a +sudo xcode-select -switch /Applications/${xcodename} || exit 1 +cd packaging/OSX || exit 1 +./gethttps.sh || exit 1 +cd ../../Xcode || exit 1 +./build.sh || exit 1 +./pack.sh || exit 1 +ls -la build || exit 1 +cp build/manaplus.dmg "${artifacts}/" || exit 1 diff --git a/tools/ci/templates/azure/macosx.yml b/tools/ci/templates/azure/macosx.yml new file mode 100644 index 000000000..4d3e355df --- /dev/null +++ b/tools/ci/templates/azure/macosx.yml @@ -0,0 +1,17 @@ +parameters: + name: '' + xcode: '' + vmImage: 'macOS 10.13' + +jobs: +- job: ${{ parameters.name }} + pool: + vmImage: '${{ parameters.vmImage }}' + steps: + - script: | + export xcodename="${{ parameters.xcode }}" + export artifacts="$(Build.ArtifactStagingDirectory)" + ./tools/ci/jobs/xcode.sh + - task: PublishBuildArtifacts@1 + inputs: + artifactName: ${{ parameters.name }} |