Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F85595807
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
4 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 5d7d247..13cbee7 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,109 +1,111 @@
# This file is part of libkazv.
# SPDX-FileCopyrightText: 2022-2023 tusooa <tusooa@kazv.moe>
# SPDX-License-Identifier: AGPL-3.0-or-later
stages:
- build
- lint
'lint':
stage: lint
image: ubuntu
+ dependencies: []
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"
- "echo 'Verify that no source file contains trailing spaces'"
- "! egrep -R --exclude-dir=transformed-libs --exclude-dir=Intl.js --exclude-dir=node_modules '\\s$' src"
rules: &build-rules
- changes: &src-chg
- Dockerfile.deps
- .gitlab-ci.yml
- '**/*.cpp'
- '**/*.hpp'
- '**/CMakeLists.txt'
- '**/*.in'
- '**/*.qml'
- 'src/js/**/*.js'
- 'src/js/**/*.mjs'
- 'packaging/**/*'
- 'icons/**/*'
lint-l10n:
stage: lint
image: node:lts
+ dependencies: []
rules:
- changes:
- .gitlab-ci.yml
- 'src/l10n/**/*.ftl'
- 'src/js/**/*.js'
- 'src/js/**/*.mjs'
script:
- cd src/js
- npm install
- npm run test
- npm run lint-l10n
cache:
key: $CI_JOB_NAME
paths:
- src/js/node_modules
.build:
stage: build
rules: *build-rules
# Use ccache, see https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/240/diffs
before_script:
# Prevent removing of downloaded archives, because we are caching it
# https://gitlab.com/gitlab-org/gitlab-runner/-/issues/991#note_126864314
- rm -f /etc/apt/apt.conf.d/docker-clean || true
- echo "dir::cache::archives $CI_PROJECT_DIR/apt-cache/archives; dir::state::lists $CI_PROJECT_DIR/apt-cache/lists;" > /etc/apt/apt.conf.d/gitlab-cache
- mkdir -pv "$CI_PROJECT_DIR/apt-cache/archives/partial" "$CI_PROJECT_DIR/apt-cache/lists/partial"
- find "$CI_PROJECT_DIR/apt-cache/" || true
- apt-get -y update
- DEBIAN_FRONTEND=noninteractive apt-get -y install ccache
- export CCACHE_COMPILERCHECK=content
- export CCACHE_BASEDIR="$CI_PROJECT_DIR"
- export CCACHE_DIR="$CI_PROJECT_DIR/ccache"
- export PATH="/usr/lib/ccache:$PATH"
- ccache --zero-stats || true
- ccache --show-stats || true
after_script:
- DEBIAN_FRONTEND=noninteractive apt-get -y autoclean
- find "$CI_PROJECT_DIR/apt-cache/"
- export CCACHE_DIR="$CI_PROJECT_DIR/ccache"
- ccache --show-stats
cache:
- key: $CI_JOB_NAME
paths:
- ccache/
# This can be shared between jobs because we install the same set of packages regardless of the type of the build
- key: apt-archive-cache
paths:
- apt-cache/
.build-debug:
extends: .build
script: |
env JOBS=2 ./packaging/GNU-Linux/appimage/build.sh
artifacts:
paths:
- kazv-Debug.AppImage
expire_in: 1 week
.build-prod:
extends: .build
script: |
env JOBS=2 ./packaging/GNU-Linux/appimage/build-prod.sh
artifacts:
paths:
- kazv-Release.AppImage
expire_in: 1 week
'build:GNU/Linux-amd64-debug:kf6':
extends: .build-debug
image:
name: 'r.lily-is.land/the-kazv-project/libkazv:servant-ubuntu24.04-debug'
'build:GNU/Linux-amd64-prod:kf6':
extends: .build-prod
image:
name: 'r.lily-is.land/the-kazv-project/libkazv:servant-ubuntu24.04-prod'
diff --git a/packaging/GNU-Linux/appimage/build-unprivileged.sh b/packaging/GNU-Linux/appimage/build-unprivileged.sh
index b23d1ec..530f835 100755
--- a/packaging/GNU-Linux/appimage/build-unprivileged.sh
+++ b/packaging/GNU-Linux/appimage/build-unprivileged.sh
@@ -1,9 +1,10 @@
#!/bin/bash
export XDG_RUNTIME_DIR=/run/user/test
-cmake .. -DCMAKE_INSTALL_PREFIX="$KAZV_INSTALL_DIR" \
+CC=/usr/lib/ccache/gcc CXX=/usr/lib/ccache/g++ \
+ cmake .. -DCMAKE_INSTALL_PREFIX="$KAZV_INSTALL_DIR" \
-DCMAKE_PREFIX_PATH="$LIBKAZV_INSTALL_DIR;$DEPS_INSTALL_DIR" -DCMAKE_BUILD_TYPE=$BUILD_TYPE -Dkazv_KF_QT_MAJOR_VERSION=$KF_VER -Dkazv_LINK_BREEZE_ICONS=ON && \
make -j$JOBS && \
make -j$JOBS DESTDIR=AppDir install && \
dbus-launch --exit-with-session -- bash "$thisDir"/test.sh
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Mon, Jul 20, 6:28 AM (1 d, 17 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1695448
Default Alt Text
(4 KB)
Attached To
Mode
rK kazv
Attached
Detach File
Event Timeline
Log In to Comment