mirror of
https://gitlab.freedesktop.org/emersion/libdisplay-info.git
synced 2024-12-25 21:59:08 +01:00
ci: add FreeBSD
The libc there is a bit different, so it's nice to make sure we don't break it. Signed-off-by: Simon Ser <contact@emersion.fr>
This commit is contained in:
parent
3e60b02037
commit
1f416f554a
1 changed files with 22 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
.templates_sha: &templates_sha 3f37cc0e461f5b0c815409bf6f55759f26a74e9c
|
.templates_sha: &templates_sha d5aa3941aa03c2f716595116354fb81eb8012acb
|
||||||
|
|
||||||
include:
|
include:
|
||||||
- project: 'freedesktop/ci-templates'
|
- project: 'freedesktop/ci-templates'
|
||||||
|
@ -7,6 +7,9 @@ include:
|
||||||
- project: 'freedesktop/ci-templates'
|
- project: 'freedesktop/ci-templates'
|
||||||
ref: *templates_sha
|
ref: *templates_sha
|
||||||
file: '/templates/alpine.yml'
|
file: '/templates/alpine.yml'
|
||||||
|
- project: 'freedesktop/ci-templates'
|
||||||
|
ref: *templates_sha
|
||||||
|
file: '/templates/freebsd.yml'
|
||||||
|
|
||||||
# When updating a prepare-container-* step, make sure to bump
|
# When updating a prepare-container-* step, make sure to bump
|
||||||
# FDO_DISTRIBUTION_TAG, otherwise the container won't get rebuilt.
|
# FDO_DISTRIBUTION_TAG, otherwise the container won't get rebuilt.
|
||||||
|
@ -14,7 +17,7 @@ include:
|
||||||
# $ git push -f -o ci.variable="FDO_FORCE_REBUILD=1"
|
# $ git push -f -o ci.variable="FDO_FORCE_REBUILD=1"
|
||||||
variables:
|
variables:
|
||||||
FDO_UPSTREAM_REPO: 'emersion/libdisplay-info'
|
FDO_UPSTREAM_REPO: 'emersion/libdisplay-info'
|
||||||
FDO_DISTRIBUTION_TAG: '2022-08-15.0'
|
FDO_DISTRIBUTION_TAG: '2022-00-08.0'
|
||||||
MESON_FLAGS: '--fatal-meson-warnings -Dwerror=true'
|
MESON_FLAGS: '--fatal-meson-warnings -Dwerror=true'
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
|
@ -55,6 +58,14 @@ prepare-container-alpine:
|
||||||
FDO_DISTRIBUTION_PACKAGES: |
|
FDO_DISTRIBUTION_PACKAGES: |
|
||||||
build-base clang compiler-rt meson make git gcovr py3-pygments
|
build-base clang compiler-rt meson make git gcovr py3-pygments
|
||||||
|
|
||||||
|
prepare-container-freebsd:
|
||||||
|
extends:
|
||||||
|
- .prepare-container
|
||||||
|
- .fdo.container-build@freebsd
|
||||||
|
variables:
|
||||||
|
FDO_DISTRIBUTION_PACKAGES: |
|
||||||
|
meson git
|
||||||
|
|
||||||
.build:
|
.build:
|
||||||
stage: "Build and test"
|
stage: "Build and test"
|
||||||
artifacts:
|
artifacts:
|
||||||
|
@ -89,3 +100,12 @@ build-alpine-clang:
|
||||||
- CC=clang meson setup build/ $MESON_FLAGS -Db_sanitize=address,undefined -Db_lundef=false
|
- CC=clang meson setup build/ $MESON_FLAGS -Db_sanitize=address,undefined -Db_lundef=false
|
||||||
- ninja -C build/
|
- ninja -C build/
|
||||||
- ninja -C build/ test
|
- ninja -C build/ test
|
||||||
|
|
||||||
|
build-freebsd:
|
||||||
|
extends:
|
||||||
|
- .build
|
||||||
|
- .fdo.distribution-image@freebsd
|
||||||
|
script:
|
||||||
|
- meson setup build/ $MESON_FLAGS
|
||||||
|
- ninja -C build/
|
||||||
|
- ninja -C build/ test
|
||||||
|
|
Loading…
Reference in a new issue