From 7843094de936fa36e94c2d515b2e84b4a99d28ec Mon Sep 17 00:00:00 2001 From: Jerome Humbert Date: Mon, 14 Sep 2020 17:33:23 +0100 Subject: [PATCH] Add basic Android CI (#576) --- tools/ci/ci-android.yaml | 38 +++++++++++++++++++ .../ci/templates/jobs-libwebrtc-android.yaml | 2 +- 2 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 tools/ci/ci-android.yaml diff --git a/tools/ci/ci-android.yaml b/tools/ci/ci-android.yaml new file mode 100644 index 000000000..aac1fba99 --- /dev/null +++ b/tools/ci/ci-android.yaml @@ -0,0 +1,38 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. + +# MixedReality-WebRTC build pipeline for Android CI + +# Trigger CI on push changes +trigger: + batch: true # Android build is very slow (>1 hour) so batch changes + branches: + include: + - master + - release/* + exclude: + - docs/* + +# Do not trigger CI on PRs +pr: none + +# Give a unique name to the build each time it runs +name: ci-android-$(SourceBranchName)-$(Date:yyyyMMdd)-$(Rev:r) + +parameters: +- name: clean + displayName: 'Clean build' + type: boolean + default: true + +stages: + +# Compile mrwebrtc +- stage: build + displayName: 'Build mrwebrtc' + jobs: + + # Build mrwebrtc.aar for Android + - template: templates/jobs-libwebrtc-android.yaml + parameters: + buildConfig: 'Debug' diff --git a/tools/ci/templates/jobs-libwebrtc-android.yaml b/tools/ci/templates/jobs-libwebrtc-android.yaml index 5841aba4b..0f007fc59 100644 --- a/tools/ci/templates/jobs-libwebrtc-android.yaml +++ b/tools/ci/templates/jobs-libwebrtc-android.yaml @@ -169,7 +169,7 @@ jobs: contents: 'mrwebrtc.aar' targetFolder: '$(Build.ArtifactStagingDirectory)' - # Publish mrwebrtc.dll and mrwebrtc.pdb + # Publish mrwebrtc.aar - task: PublishPipelineArtifact@0 displayName: 'Publish mrwebrtc' inputs: