Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Suyu
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
many-archive
Suyu
Commits
a1295523
There was an error fetching the commit references. Please try again later.
Unverified
Commit
a1295523
authored
1 year ago
by
Fijxu
Browse files
Options
Downloads
Patches
Plain Diff
feature: Store CCACHE cache in CI cache
parent
209c2ac7
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.ci/scripts/linux/docker.sh
+2
-0
2 additions, 0 deletions
.ci/scripts/linux/docker.sh
.gitlab-ci.yml
+59
-2
59 additions, 2 deletions
.gitlab-ci.yml
with
61 additions
and
2 deletions
.ci/scripts/linux/docker.sh
+
2
−
0
View file @
a1295523
...
@@ -11,6 +11,8 @@ ccache -s
...
@@ -11,6 +11,8 @@ ccache -s
mkdir
build
||
true
&&
cd
build
mkdir
build
||
true
&&
cd
build
cmake ..
\
cmake ..
\
-DBoost_USE_STATIC_LIBS
=
ON
\
-DBoost_USE_STATIC_LIBS
=
ON
\
-DSUYU_USE_PRECOMPILED_HEADERS
=
OFF
\
-DDYNARMIC_USE_PRECOMPILED_HEADERS
=
OFF
\
-DCMAKE_BUILD_TYPE
=
RelWithDebInfo
\
-DCMAKE_BUILD_TYPE
=
RelWithDebInfo
\
-DCMAKE_CXX_FLAGS
=
"-march=x86-64-v2"
\
-DCMAKE_CXX_FLAGS
=
"-march=x86-64-v2"
\
-DCMAKE_CXX_COMPILER
=
/usr/lib/ccache/g++
\
-DCMAKE_CXX_COMPILER
=
/usr/lib/ccache/g++
\
...
...
This diff is collapsed.
Click to expand it.
.gitlab-ci.yml
+
59
−
2
View file @
a1295523
stages
:
stages
:
-
format
-
build
-
build
variables
:
# https://docs.gitlab.com/ee/ci/runners/configure_runners.html
TRANSFER_METER_FREQUENCY
:
"
2s"
ARTIFACT_COMPRESSION_LEVEL
:
"
fast"
CACHE_COMPRESSION_LEVEL
:
"
fastest"
CACHE_REQUEST_TIMEOUT
:
5
# Use FASTZIP for faster compression in cache and artifacts
# https://docs.gitlab.com/runner/configuration/feature-flags.html#available-feature-flags
FF_USE_FASTZIP
:
true
# Our Variables
CACHE_DIR
:
"
$CI_PROJECT_DIR/ccache"
CCACHE_DIR
:
$CACHE_DIR
#CLANG FORMAT - CHECKS CODE FOR FORMATTING ISSUES
clang-format
:
stage
:
format
image
:
suyuemu/cibuild:clangformat
#THIS HAS TO BE FALSE. IT KEEPS RESOURCES AVAILABLE - EG RUNNERS WONT TRY BUILDING IF CODEBASE IS WRONG
#MR's NEED TO BE CORRECTLY CLANG FORMATTED
allow_failure
:
false
script
:
-
git submodule update --init --depth 1 --recursive
-
bash .ci/scripts/format/script.sh
tags
:
# - Linux
# - Windows
-
Parallelized
#LINUX BUILD - BUILDS LINUX APPIMAGE
build-linux
:
stage
:
build
image
:
suyuemu/cibuild:linux-x64
resource_group
:
linux-ci
cache
:
key
:
"
$CI_COMMIT_REF_NAME-ccache"
paths
:
-
$CACHE_DIR
before_script
:
-
mkdir -p $CACHE_DIR
-
chmod -R 777 $CACHE_DIR
-
ls -la $CACHE_DIR
variables
:
GIT_SUBMODULE_STRATEGY
:
recursive
GIT_SUBMODULE_DEPTH
:
1
RELEASE_NAME
:
mainline
script
:
-
bash .ci/scripts/linux/docker.sh
-
bash .ci/scripts/linux/upload.sh
artifacts
:
paths
:
-
artifacts/*
tags
:
-
Linux
-
Parallelized
#ANDROID BUILD - BUILDS APK
#ANDROID BUILD - BUILDS APK
android
:
android
:
stage
:
build
stage
:
build
...
@@ -21,5 +79,4 @@ android:
...
@@ -21,5 +79,4 @@ android:
tags
:
tags
:
-
Linux
-
Linux
-
Parallelized
-
Parallelized
-
Testing
-
Fijxu
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment