forked from AuroraMiddleware/gtk
Merge branch 'ci-install-build' into 'master'
Make a standalone hello world See merge request GNOME/gtk!3652
This commit is contained in:
commit
51a60b88b7
@ -24,9 +24,8 @@ variables:
|
|||||||
BACKEND_FLAGS: "-Dx11-backend=true -Dwayland-backend=true -Dbroadway-backend=true"
|
BACKEND_FLAGS: "-Dx11-backend=true -Dwayland-backend=true -Dbroadway-backend=true"
|
||||||
FEATURE_FLAGS: "-Dvulkan=enabled -Dcloudproviders=enabled"
|
FEATURE_FLAGS: "-Dvulkan=enabled -Dcloudproviders=enabled"
|
||||||
MESON_TEST_TIMEOUT_MULTIPLIER: 3
|
MESON_TEST_TIMEOUT_MULTIPLIER: 3
|
||||||
FEDORA_IMAGE: "registry.gitlab.gnome.org/gnome/gtk/fedora:v31"
|
FEDORA_IMAGE: "registry.gitlab.gnome.org/gnome/gtk/fedora:v32"
|
||||||
FLATPAK_IMAGE: "registry.gitlab.gnome.org/gnome/gnome-runtime-images/gnome:master"
|
FLATPAK_IMAGE: "registry.gitlab.gnome.org/gnome/gnome-runtime-images/gnome:master"
|
||||||
DOCS_IMAGE: "registry.gitlab.gnome.org/gnome/gtk/fedora:v31"
|
|
||||||
|
|
||||||
.only-default:
|
.only-default:
|
||||||
only:
|
only:
|
||||||
@ -60,6 +59,7 @@ style-check-diff:
|
|||||||
- "${CI_PROJECT_DIR}/_build/testsuite/reftests/output/*/*.png"
|
- "${CI_PROJECT_DIR}/_build/testsuite/reftests/output/*/*.png"
|
||||||
- "${CI_PROJECT_DIR}/_build/testsuite/gsk/compare/*/*/*.png"
|
- "${CI_PROJECT_DIR}/_build/testsuite/gsk/compare/*/*/*.png"
|
||||||
- "${CI_PROJECT_DIR}/_build/testsuite/css/output/*/*.syscap"
|
- "${CI_PROJECT_DIR}/_build/testsuite/css/output/*/*.syscap"
|
||||||
|
- "${CI_PROJECT_DIR}/_build_hello/meson-logs"
|
||||||
cache:
|
cache:
|
||||||
key: "$CI_JOB_NAME"
|
key: "$CI_JOB_NAME"
|
||||||
paths:
|
paths:
|
||||||
@ -79,9 +79,14 @@ fedora-x86_64:
|
|||||||
script:
|
script:
|
||||||
- .gitlab-ci/show-info-linux.sh
|
- .gitlab-ci/show-info-linux.sh
|
||||||
- meson subprojects update
|
- meson subprojects update
|
||||||
- meson ${COMMON_MESON_FLAGS} ${EXTRA_MESON_FLAGS} ${BACKEND_FLAGS} ${FEATURE_FLAGS}
|
- mkdir _install
|
||||||
|
- meson --prefix=${CI_PROJECT_DIR}/_install
|
||||||
|
${COMMON_MESON_FLAGS} ${EXTRA_MESON_FLAGS} ${BACKEND_FLAGS} ${FEATURE_FLAGS}
|
||||||
_build
|
_build
|
||||||
- ninja -C _build
|
- meson compile -C _build
|
||||||
|
- meson install -C _build
|
||||||
|
- PKG_CONFIG_PATH=${CI_PROJECT_DIR}/_install/lib64/pkgconfig:${CI_PROJECT_DIR}/_install/share/pkgconfig meson setup _build_hello examples/hello
|
||||||
|
- meson compile -C _build_hello
|
||||||
- .gitlab-ci/run-tests.sh _build x11
|
- .gitlab-ci/run-tests.sh _build x11
|
||||||
- .gitlab-ci/run-tests.sh _build wayland
|
- .gitlab-ci/run-tests.sh _build wayland
|
||||||
- .gitlab-ci/run-tests.sh _build broadway
|
- .gitlab-ci/run-tests.sh _build broadway
|
||||||
@ -302,7 +307,7 @@ asan-build:
|
|||||||
allow_failure: true
|
allow_failure: true
|
||||||
|
|
||||||
reference:
|
reference:
|
||||||
image: $DOCS_IMAGE
|
image: $FEDORA_IMAGE
|
||||||
stage: docs
|
stage: docs
|
||||||
needs: []
|
needs: []
|
||||||
variables:
|
variables:
|
||||||
|
@ -38,7 +38,6 @@ RUN dnf -y install \
|
|||||||
gstreamer1-plugins-good \
|
gstreamer1-plugins-good \
|
||||||
gstreamer1-plugins-bad-free-devel \
|
gstreamer1-plugins-bad-free-devel \
|
||||||
gstreamer1-plugins-base-devel \
|
gstreamer1-plugins-base-devel \
|
||||||
gtk-doc \
|
|
||||||
hicolor-icon-theme \
|
hicolor-icon-theme \
|
||||||
iso-codes \
|
iso-codes \
|
||||||
itstool \
|
itstool \
|
||||||
|
10
examples/hello/meson.build
Normal file
10
examples/hello/meson.build
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
project('hello', 'c',
|
||||||
|
version: '4.3.0',
|
||||||
|
meson_version: '>= 0.50.0',
|
||||||
|
)
|
||||||
|
|
||||||
|
executable('hello',
|
||||||
|
[ 'hello-world.c' ],
|
||||||
|
dependencies: [ dependency('gtk4') ],
|
||||||
|
install: false
|
||||||
|
)
|
@ -2,7 +2,6 @@ examples = [
|
|||||||
'builder',
|
'builder',
|
||||||
'drawing',
|
'drawing',
|
||||||
'grid-packing',
|
'grid-packing',
|
||||||
'hello-world',
|
|
||||||
'plugman',
|
'plugman',
|
||||||
'search-bar',
|
'search-bar',
|
||||||
'sunny',
|
'sunny',
|
||||||
|
Loading…
Reference in New Issue
Block a user