Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F85832568
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
3 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index ec9f78f..b4958f3 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,81 +1,88 @@
+# This file is part of libkazv.
+# SPDX-FileCopyrightText: 2022 Tusooa Zhu <tusooa@kazv.moe>
+# SPDX-License-Identifier: AGPL-3.0-or-later
+
stages:
- lint
- prepare
- deps
- build
-lint:
+'lint:no-tabs':
stage: lint
script: |
echo 'Verify that no source file contains tabs'
! egrep -R --exclude-dir=transformed-libs --exclude-dir=Intl.js --exclude-dir=node_modules $'\t' src
- rules:
- - if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
- - if: $CI_PIPELINE_SOURCE == "schedule"
+ rules: &build-rules
+ - changes: &src-chg
+ - Dockerfile.deps
+ - '**/*.cpp'
+ - '**/*.hpp'
+ - '**/CMakeLists.txt'
+ - '**/*.in'
+ - '**/*.qml'
+ - 'src/js/*.js'
+ - 'src/js/transformed-libs/*.js'
+ - 'packaging/**'
+ - 'icons/**'
-prepare-env:
+'prepare:env':
stage: prepare
script: |
tag="$CI_COMMIT_REF_SLUG"
echo "tag=$tag" >> prepare.env
echo "libkazvTag=servant" >> prepare.env
artifacts:
reports:
dotenv: prepare.env
- rules:
- - if: $CI_PIPELINE_SOURCE == "schedule"
+ rules: *build-rules
-build-deps-debug:
+'deps:GNU/Linux-amd64-debug':
stage: deps
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
script: |
mkdir -p /kaniko/.docker
echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
/kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile.deps --build-arg LIBKAZV_TAG="$libkazvTag" --build-arg JOBS=1 --destination $CI_REGISTRY_IMAGE/deps:$tag --destination $CI_REGISTRY_IMAGE/deps:$tag-debug
dependencies:
- - prepare-env
- rules:
- - if: $CI_PIPELINE_SOURCE == "schedule"
-
+ - prepare:env
+ rules: *build-rules
-build-deps-production:
+'deps:GNU/Linux-amd64-production':
stage: deps
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
script: |
mkdir -p /kaniko/.docker
echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
/kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile.deps --build-arg LIBKAZV_TAG="$libkazvTag"-prod --build-arg JOBS=1 --destination $CI_REGISTRY_IMAGE/deps:"$tag"-prod
dependencies:
- - prepare-env
- rules:
- - if: $CI_PIPELINE_SOURCE == "schedule"
+ - prepare:env
+ rules: *build-rules
-build-debug:
+'build:GNU/Linux-amd64-debug':
stage: build
image:
name: '$CI_REGISTRY_IMAGE/deps:$CI_COMMIT_REF_SLUG'
script: |
./packaging/GNU-Linux/appimage/build.sh
artifacts:
paths:
- kazv-Debug.AppImage
expire_in: 1 week
- rules:
- - if: $CI_PIPELINE_SOURCE == "schedule"
+ rules: *build-rules
-build-prod:
+'build:GNU/Linux-amd64-prod':
stage: build
image:
name: '$CI_REGISTRY_IMAGE/deps:$CI_COMMIT_REF_SLUG-prod'
script: |
./packaging/GNU-Linux/appimage/build-prod.sh
artifacts:
paths:
- kazv-Release.AppImage
expire_in: 1 week
- rules:
- - if: $CI_PIPELINE_SOURCE == "schedule"
+ rules: *build-rules
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Mon, Nov 2, 8:39 AM (8 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1803920
Default Alt Text
(3 KB)
Attached To
Mode
rK kazv
Attached
Detach File
Event Timeline