Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Duniter v2S
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Monitor
Service Desk
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nodes
rust
Duniter v2S
Commits
d40b20d5
Commit
d40b20d5
authored
3 years ago
by
Éloïs
Browse files
Options
Downloads
Patches
Plain Diff
ci(cache): split job build_debug for separate pull or push
parent
6b69448e
No related branches found
No related tags found
1 merge request
!21
ci cache
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+32
-2
32 additions, 2 deletions
.gitlab-ci.yml
with
32 additions
and
2 deletions
.gitlab-ci.yml
+
32
−
2
View file @
d40b20d5
...
@@ -38,6 +38,35 @@ fmt_and_clippy:
...
@@ -38,6 +38,35 @@ fmt_and_clippy:
build_debug
:
build_debug
:
extends
:
.env
extends
:
.env
rules
:
rules
:
-
if
:
$CI_COMMIT_TAG
when
:
never
-
if
:
'
$CI_PIPELINE_SOURCE
==
"merge_request_event"
||
$CI_COMMIT_BRANCH
==
"master"'
changes
:
-
Cargo.lock
-
when
:
manual
stage
:
build
script
:
-
cargo clean -p duniter
-
cargo build --locked
-
mkdir build
-
mv target/debug/duniter build/duniter
artifacts
:
paths
:
-
build/
cache
:
-
key
:
files
:
-
Cargo.lock
paths
:
-
target/debug
policy
:
push
build_debug_with_cache
:
extends
:
.env
rules
:
-
changes
:
-
Cargo.lock
when
:
never
-
if
:
$CI_COMMIT_TAG
-
if
:
$CI_COMMIT_TAG
when
:
never
when
:
never
-
if
:
'
$CI_PIPELINE_SOURCE
==
"merge_request_event"
||
$CI_COMMIT_BRANCH
==
"master"'
-
if
:
'
$CI_PIPELINE_SOURCE
==
"merge_request_event"
||
$CI_COMMIT_BRANCH
==
"master"'
...
@@ -45,7 +74,7 @@ build_debug:
...
@@ -45,7 +74,7 @@ build_debug:
stage
:
build
stage
:
build
script
:
script
:
-
cargo clean -p duniter
-
cargo clean -p duniter
-
cargo build
-
cargo build
--locked
-
mkdir build
-
mkdir build
-
mv target/debug/duniter build/duniter
-
mv target/debug/duniter build/duniter
artifacts
:
artifacts
:
...
@@ -57,6 +86,7 @@ build_debug:
...
@@ -57,6 +86,7 @@ build_debug:
-
Cargo.lock
-
Cargo.lock
paths
:
paths
:
-
target/debug
-
target/debug
policy
:
pull
build_release
:
build_release
:
extends
:
.env
extends
:
.env
...
@@ -65,7 +95,7 @@ build_release:
...
@@ -65,7 +95,7 @@ build_release:
-
when
:
never
-
when
:
never
stage
:
build
stage
:
build
script
:
script
:
-
cargo build --release
-
cargo build
--locked
--release
-
mkdir build
-
mkdir build
-
mv target/release/duniter build/duniter
-
mv target/release/duniter build/duniter
artifacts
:
artifacts
:
...
...
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