From 6ade43833d2a3e2c1ea948b310d27d896b9d31a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Commaille?= Date: Mon, 4 Apr 2022 21:20:35 +0200 Subject: [PATCH] ci: Fix nightly build Resources where compiled for stable version --- .gitlab-ci.yml | 2 +- meson.build | 2 +- meson_options.txt | 3 ++- src/meson.build | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 68ca3151..580cd876 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -15,7 +15,7 @@ flatpak: FLATPAK_MODULE: "fractal" APP_ID: "org.gnome.Fractal.Devel" RUNTIME_REPO: "https://nightly.gnome.org/gnome-nightly.flatpakrepo" - CONFIG_OPTS: "-Dprofile=default" + CONFIG_OPTS: "-Dprofile=nightly" script: - rewrite-flatpak-manifest ${MANIFEST_PATH} ${FLATPAK_MODULE} ${CONFIG_OPTS} - > diff --git a/meson.build b/meson.build index 1bcaaeac..7bb26abb 100644 --- a/meson.build +++ b/meson.build @@ -47,7 +47,7 @@ iconsdir = datadir / 'icons' podir = meson.project_source_root() / 'po' gettext_package = meson.project_name() -if get_option('profile') == 'development' +if get_option('profile') == 'development' or get_option('profile') == 'nightly' profile = 'Devel' vcs_tag = run_command('git', 'rev-parse', '--short', 'HEAD').stdout().strip() if vcs_tag == '' diff --git a/meson_options.txt b/meson_options.txt index 35af6dbc..bcc92673 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -3,7 +3,8 @@ option( type: 'combo', choices: [ 'default', - 'development' + 'development', + 'nightly', ], value: 'default', description: 'The build profile for Fractal. One of "default" or "development".' diff --git a/src/meson.build b/src/meson.build index 532dfd3e..a95b4946 100644 --- a/src/meson.build +++ b/src/meson.build @@ -21,7 +21,7 @@ run_command( cargo_options = [ '--manifest-path', meson.project_source_root() / 'Cargo.toml' ] cargo_options += [ '--target-dir', meson.project_build_root() / 'src' ] -if get_option('profile') == 'default' +if get_option('profile') == 'default' or get_option('profile') == 'nightly' cargo_options += [ '--release' ] rust_target = 'release' message('Building in release mode')