Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Engel Simulator 2020
Engel Simulator 2020
Commits
a0d50568
Commit
a0d50568
authored
Dec 21, 2020
by
Rahix
🦀
Browse files
ci: Add build cache
Cache cargo build directory (`target/`) and npm's `node_modules/`.
parent
76a9d685
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
a0d50568
...
...
@@ -4,6 +4,11 @@ stages:
-
check
-
build
cache
:
&global_cache
paths
:
-
target/
-
www/node_modules/
check
:
stage
:
check
script
:
...
...
@@ -15,6 +20,10 @@ check:
build-dev
:
stage
:
build
cache
:
# inherit all global cache settings
<<
:
*global_cache
key
:
merge-requests
script
:
-
ls -al /usr/local/cargo/bin
-
wasm-pack build --dev
...
...
@@ -23,6 +32,10 @@ build-dev:
build-release
:
stage
:
build
cache
:
# inherit all global cache settings
<<
:
*global_cache
key
:
release-build
script
:
-
wasm-pack build
-
cd www
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment