Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Opus
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Xiph.Org
Opus
Commits
558a3c2a
Verified
Commit
558a3c2a
authored
1 year ago
by
Tim-Philipp Müller
Committed by
Tristan Matthews
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
ci: add arm64 CI
parent
20c032d2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#3623
passed
1 year ago
Stage: build
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+33
-10
33 additions, 10 deletions
.gitlab-ci.yml
with
33 additions
and
10 deletions
.gitlab-ci.yml
+
33
−
10
View file @
558a3c2a
...
...
@@ -7,6 +7,18 @@ default:
# Image from https://hub.docker.com/_/gcc/ based on Debian
image
:
gcc:9
# https://docs.gitlab.com/ee/ci/yaml/yaml_optimization.html#reference-tags
.snippets
:
git_prep
:
# Make sure we have a recent annotated tag, otherwise meson/get-version.py
# might fail later (e.g. shallow clone without enough history) or return
# a bogus version based on a much older tag. This can happen in merge request
# pipelines from a personal fork, as the fork might not have the latest
# upstream tags if it has been forked a long time ago. Also affects the
# git version picked up by autotools and cmake, not just meson.
-
git fetch https://gitlab.xiph.org/xiph/opus.git refs/tags/v1.4:refs/tags/v1.4
-
git describe
whitespace
:
stage
:
test
script
:
...
...
@@ -16,7 +28,8 @@ autoconf:
stage
:
build
before_script
:
-
apt-get update &&
apt-get install -y zip doxygen
apt-get install -y zip doxygen git
-
!reference
[
.snippets
,
git_prep
]
script
:
-
./autogen.sh
-
./configure
...
...
@@ -36,26 +49,36 @@ cmake:
before_script
:
-
apt-get update &&
apt-get install -y cmake ninja-build
-
!reference
[
.snippets
,
git_prep
]
script
:
-
mkdir build
-
cmake -S . -B build -G "Ninja" -DCMAKE_BUILD_TYPE=Release -DOPUS_BUILD_TESTING=ON -DOPUS_BUILD_PROGRAMS=ON
-
cmake --build build
-
cd build && ctest --output-on-failure
meson
:
.meson
:
image
:
'
debian:bookworm-slim'
stage
:
build
before_script
:
-
apt-get update &&
apt-get install -y python3-pip ninja-build doxygen
-
export XDG_CACHE_HOME=$PWD/pip-cache
-
pip3 install --user meson
apt-get install -y ninja-build doxygen meson git
-
!reference
[
.snippets
,
git_prep
]
script
:
-
export PATH=$PATH:$HOME/.local/bin
-
mkdir builddir
-
meson setup
--werror
-Dtests=enabled -Ddocs=enabled -Dbuildtype=release builddir
-
meson setup -Dtests=enabled -Ddocs=enabled -Dbuildtype=release builddir
${MESON_EXTRA_ARGS}
-
meson compile -C builddir
-
meson test -C builddir
#- meson dist --no-tests -C builddir
cache
:
paths
:
-
'
pip-cache/*'
meson x86_64
:
extends
:
'
.meson'
variables
:
MESON_EXTRA_ARGS
:
'
--werror'
meson arm64
:
extends
:
'
.meson'
tags
:
-
'
gstreamer-arm64-linux-docker'
variables
:
# arm64 build has a compiler warning still, so let's not use --werror for now
MESON_EXTRA_ARGS
:
'
-Dwerror=false'
This diff is collapsed.
Click to expand it.
Tristan Matthews
@tmatth
mentioned in merge request
!61 (closed)
·
1 year ago
mentioned in merge request
!61 (closed)
mentioned in merge request !61
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment