Skip to content
Snippets Groups Projects
Commit 763befad authored by Samuel Tardieu's avatar Samuel Tardieu
Browse files

Configure Gitlab CI caching

parent e3f341ef
No related branches found
No related tags found
1 merge request!2Gitlab ci
Pipeline #97355 passed
...@@ -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/
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment