Skip to content
Snippets Groups Projects
Commit 1e74e7b7 authored by Stephen D's avatar Stephen D
Browse files

add ci

parent e7289fbf
No related branches found
No related tags found
1 merge request!3add ci
Pipeline #6408 failed
image: "rust:latest"
stages:
- lint
- build
before_script:
- rustup target add thumbv6m-none-eabi
- rustup component add rustfmt
- rustup component add clippy
- cargo install flip-link
- cargo install elf2uf2-rs
lint:
stage: lint
script:
- cargo fmt -- --check
- cargo clippy --all-features -- -D warnings
build-rev3:
stage: build
script:
- cargo build --release
- elf2uf2-rs target/thumbv6m-none-eabi/release/cats-mobile-transceiver-mainboard firmware-rev3.uf2
artifacts:
paths:
- firmware-rev3
build-rev2:
stage: build
script:
- sed -i "s/pub const REV_3_BOARD: bool = true;/pub const REV_3_BOARD: bool = false;/" companion-software/src/main.rs
- cargo build --release
- elf2uf2-rs target/thumbv6m-none-eabi/release/cats-mobile-transceiver-mainboard firmware-rev2.uf2
artifacts:
paths:
- firmware-rev2
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