stm32f4disc-demo/.gitlab-ci.yml

29 lines
615 B
YAML
Raw Normal View History

2019-04-02 12:28:26 +02:00
# Use Rust docker image, see: https://hub.docker.com/_/rust/
image: rust:latest
# Set the Cargo dir manually so it can be cached
variables:
CARGO_HOME: $CI_PROJECT_DIR/cargo
# Cache the Cargo dir and build artifacts
cache:
paths:
- cargo/
- target/
# Add the thumbv7em-none-eabihf target for Rust
before_script:
- rustup target add thumbv7em-none-eabihf
2019-04-02 12:28:26 +02:00
# Defines stages which are to be executed
stages:
- build
# Run `cargo build` for the project with stable Rust
rust-build:
2019-04-02 12:28:26 +02:00
stage: build
image: rust:latest
script:
- rustc --version && cargo --version
- cargo build --release --jobs 1