2019-04-02 12:28:26 +02:00
|
|
|
# Use Rust docker image, see: https://hub.docker.com/_/rust/
|
2019-04-02 15:48:13 +02:00
|
|
|
image: rust:latest
|
|
|
|
|
|
|
|
# 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
|
2019-04-02 12:41:25 +02:00
|
|
|
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
|