summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArun Raghavan <arun@asymptotic.io>2020-11-27 12:43:50 -0500
committerArun Raghavan <arun@asymptotic.io>2020-11-27 13:20:12 -0500
commite23c10c5e0445994a77a11a21914c475ff839389 (patch)
treeb9ccf190ae60e140abd96a33b6169d4c0a050d62
parentd938d2cf521741f2bf87e97157f92a4de075dcff (diff)
downloadwebrtc-audio-processing-e23c10c5e0445994a77a11a21914c475ff839389.tar.gz
ci: Add an aarch64 build
-rw-r--r--.gitlab-ci.yml50
1 files changed, 43 insertions, 7 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 9eec61d..11a3b78 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -19,10 +19,9 @@ variables:
# CI runs, for example when adding new packages to FDO_DISTRIBUTION_PACKAGES.
# The tag is an arbitrary string that identifies the exact container
# contents.
- FDO_DISTRIBUTION_TAG: '2020-10-26.1'
+ BASE_TAG: '2020-11-27.1'
FDO_DISTRIBUTION_VERSION: '20.10'
FDO_UPSTREAM_REPO: 'pulseaudio/webrtc-audio-processing'
- UBUNTU_IMAGE: "$CI_REGISTRY_IMAGE/ubuntu/$FDO_DISTRIBUTION_VERSION:$FDO_DISTRIBUTION_TAG"
include:
# We pull templates from master to avoid the overhead of periodically
@@ -33,9 +32,8 @@ include:
ref: 'master'
file: '/templates/ubuntu.yml'
-build-container:
- extends: .fdo.container-build@ubuntu
- stage: container
+# Common container build template
+.ubuntu-container-build:
variables:
GIT_STRATEGY: none # no need to pull the whole tree for rebuilding the image
@@ -50,9 +48,37 @@ build-container:
ninja-build
python3-setuptools
-build:
+# Used to extend both container and build jobs
+.ubuntu-x86_64:
+ variables:
+ FDO_DISTRIBUTION_TAG: "x86_64-$BASE_TAG"
+
+# Used to extend both container and build jobs
+.ubuntu-aarch64:
+ tags:
+ - aarch64
+ variables:
+ FDO_DISTRIBUTION_TAG: "aarch64-$BASE_TAG"
+
+build-container-x86_64:
+ extends:
+ - .fdo.container-build@ubuntu@x86_64
+ - .ubuntu-container-build
+ - .ubuntu-x86_64
+ stage: container
+
+build-container-aarch64:
+ extends:
+ - .fdo.container-build@ubuntu@aarch64
+ - .ubuntu-container-build
+ - .ubuntu-aarch64
+ stage: container
+
+# Common build template
+.build:
stage: build
- image: $UBUNTU_IMAGE
+ extends:
+ - .fdo.distribution-image@ubuntu
script:
- meson build
- cd build
@@ -60,3 +86,13 @@ build:
artifacts:
paths:
- build/
+
+build-x86_64:
+ extends:
+ - .build
+ - .ubuntu-x86_64
+
+build-aarch64:
+ extends:
+ - .build
+ - .ubuntu-aarch64