Skip to content
Extraits de code Groupes Projets
Vérifiée Valider 6633be5f rédigé par Kubat's avatar Kubat
Parcourir les fichiers

CI: Try to fix the CI [gen-appimage]

parent 94516098
Aucune branche associée trouvée
Aucune étiquette associée trouvée
1 requête de fusion!139Add Appimage builds for lektord, lkt and klkt
...@@ -16,12 +16,11 @@ stages: ...@@ -16,12 +16,11 @@ stages:
variables: variables:
- $CI_MERGE_REQUEST_TITLE =~ /^WIP:/ - $CI_MERGE_REQUEST_TITLE =~ /^WIP:/
- $CI_MERGE_REQUEST_TITLE =~ /^Draft:/ - $CI_MERGE_REQUEST_TITLE =~ /^Draft:/
- $CI_COMMIT_TITLE =~ /skip-ci/ - $CI_COMMIT_TITLE =~ /.*skip-ci.*/
- $CI_COMMIT_TITLE =~ /no-build/ - $CI_COMMIT_TITLE =~ /.*no-build.*/
variables: variables:
SRC_DIR: $CI_PROJECT_DIR # Where the sources are SRC_DIR: $CI_PROJECT_DIR # Where the sources are
WORK_DIR: "/home/gitlab-runner/CI_$CI_PIPELINE_ID" # Where we will work, so that it's not erased WORK_DIR: "/home/gitlab-runner/CI_$CI_PIPELINE_ID" # Where we will work, so that it's not erased
TARGET_DIR: "/home/gitlab-runner/dist/lektor/" # Where generated binaries will be copied
.breaking_tests: &breaking_tests .breaking_tests: &breaking_tests
allow_failure: true allow_failure: true
...@@ -29,14 +28,14 @@ stages: ...@@ -29,14 +28,14 @@ stages:
.bin_generation: &bin_generation .bin_generation: &bin_generation
tags: tags:
- kurisu - kurisu
only:
- master
- merge_requests
except: except:
variables: variables:
- $CI_COMMIT_TITLE =~ /skip-ci/ - $CI_COMMIT_TITLE == /.*gen-appimage.*/
- $CI_COMMIT_TITLE =~ /no-build/
- $CI_COMMIT_TITLE == /gen-appimage/
variables: variables:
SRC_DIR: $CI_PROJECT_DIR # Where the sources are TARGET_DIR: "/home/gitlab-runner/dist/lektor/" # Where generated binaries will be copied
WORK_DIR: "/home/gitlab-runner/CI_$CI_PIPELINE_ID" # Where we will work, so that it's not erased
variables: variables:
GIT_DEPTH: 3 # No need to clone all the history GIT_DEPTH: 3 # No need to clone all the history
...@@ -113,5 +112,6 @@ build_clang: ...@@ -113,5 +112,6 @@ build_clang:
appimage_clang: appimage_clang:
<<: *bin_generation <<: *bin_generation
<<: *main_tests
stage: redist stage: redist
script: utils/scripts/validate.bash --build=clang --static-modules --appimage --step=configure,build,copy script: utils/scripts/validate.bash --build=clang --static-modules --appimage --step=configure,build,copy
...@@ -14,6 +14,7 @@ LKT_DIR="$PWD" # The project directory ...@@ -14,6 +14,7 @@ LKT_DIR="$PWD" # The project directory
LKT_CONFIGURE_OPTIONS="" # Options to pass to the configure command LKT_CONFIGURE_OPTIONS="" # Options to pass to the configure command
LKT_CORE_NUMBER=4 # Number of cores to use with make LKT_CORE_NUMBER=4 # Number of cores to use with make
LKT_TEST="" # Which tests to perform LKT_TEST="" # Which tests to perform
LKT_APPIMAGE="" # Run configure with --enable-appimage
LKT_SRC=$SRC_DIR # Where to find the sources of lektor LKT_SRC=$SRC_DIR # Where to find the sources of lektor
LKT_WORK=$WORK_DIR # The work dir, where to play LKT_WORK=$WORK_DIR # The work dir, where to play
LKT_TARGET_DIR=$TARGET_DIR # The bin dir, where AppImages will be placed LKT_TARGET_DIR=$TARGET_DIR # The bin dir, where AppImages will be placed
...@@ -225,6 +226,9 @@ function process_args () ...@@ -225,6 +226,9 @@ function process_args ()
if [ "x$LKT_STATIC_MODULES" = "xyes" ] ; then if [ "x$LKT_STATIC_MODULES" = "xyes" ] ; then
LKT_CONFIGURE_OPTIONS="$LKT_CONFIGURE_OPTIONS --with-liblektor=static" LKT_CONFIGURE_OPTIONS="$LKT_CONFIGURE_OPTIONS --with-liblektor=static"
fi fi
if [ "x$LKT_APPIMAGE" == "xyes" ] ; then
LKT_CONFIGURE_OPTIONS="$LKT_CONFIGURE_OPTIONS --enable-appimage"
fi
LKT_CONFIGURE_OPTIONS="$LKT_CONFIGURE_OPTIONS CC=$LKT_COMPILER" LKT_CONFIGURE_OPTIONS="$LKT_CONFIGURE_OPTIONS CC=$LKT_COMPILER"
} }
...@@ -238,6 +242,9 @@ for arg in $* ; do ...@@ -238,6 +242,9 @@ for arg in $* ; do
--debug) --debug)
LKT_DEBUG="yes" LKT_DEBUG="yes"
;; ;;
--appimage)
LKT_APPIMAGE="yes"
;;
--build=*) --build=*)
LKT_COMPILER=$(echo "A$arg" | sed -e 's/A--build=//g') LKT_COMPILER=$(echo "A$arg" | sed -e 's/A--build=//g')
;; ;;
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter