Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
DC motor driver hat
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container 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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software
DC motor driver hat
Commits
763befad
Commit
763befad
authored
8 months ago
by
Samuel Tardieu
Browse files
Options
Downloads
Patches
Plain Diff
Configure Gitlab CI caching
parent
e3f341ef
No related branches found
No related tags found
1 merge request
!2
Gitlab ci
Pipeline
#97355
passed
8 months ago
Stage: check
Stage: build
Stage: test
Stage: deploy
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+22
-1
22 additions, 1 deletion
.gitlab-ci.yml
with
22 additions
and
1 deletion
.gitlab-ci.yml
+
22
−
1
View file @
763befad
...
@@ -4,6 +4,23 @@ stages:
...
@@ -4,6 +4,23 @@ stages:
-
test
-
test
-
deploy
-
deploy
cache
:
&global_cache
key
:
${CI_COMMIT_REF_SLUG}
# Share cache between all jobs on one branch/tag
paths
:
-
.cargo/bin
-
.cargo/registry/index
-
.cargo/registry/cache
-
.rustup
-
target/debug/deps
-
target/debug/build
-
target/thumbv7m-none-eabi/release/deps
-
target/thumbv7m-none-eabi/release/build
policy
:
pull-push
variables
:
RUSTUP_HOME
:
${CI_PROJECT_DIR}/.rustup
CARGO_HOME
:
${CI_PROJECT_DIR}/.cargo
rust-lint
:
rust-lint
:
image
:
rust
image
:
rust
stage
:
check
stage
:
check
...
@@ -19,7 +36,9 @@ python-lint:
...
@@ -19,7 +36,9 @@ python-lint:
stage
:
check
stage
:
check
script
:
script
:
-
apk add py3-flake8
-
apk add py3-flake8
-
flake8
-
flake8 controller/python
cache
:
paths
:
build-rust
:
build-rust
:
image
:
rust
image
:
rust
...
@@ -47,6 +66,8 @@ deploy:
...
@@ -47,6 +66,8 @@ deploy:
-
mkdir firmware
-
mkdir firmware
-
cp target/thumbv7m-none-eabi/release/dc-motor-driver-hat firmware/
-
cp target/thumbv7m-none-eabi/release/dc-motor-driver-hat firmware/
-
cp controller/python/controller.py firmware/
-
cp controller/python/controller.py firmware/
cache
:
paths
:
artifacts
:
artifacts
:
paths
:
paths
:
-
firmware/
-
firmware/
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