summaryrefslogtreecommitdiff
path: root/tools/ci
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-09-17 00:56:18 +0300
committerAndrei Karas <akaras@inbox.ru>2018-09-19 23:20:15 +0300
commitf834fe16f68369653e576dea7bac47d36e77e364 (patch)
tree33969c5ec4b59a317987d4f71d0edac213cbca42 /tools/ci
parent111670f3145dd2e388daf4867955309d056fee75 (diff)
downloadmanaverse-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-xtools/ci/jobs/xcode.sh11
-rw-r--r--tools/ci/templates/azure/macosx.yml17
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 }}