image: rust:1.77
stages:
- build
- fmt
- lint
run-build:
stage: build
script:
- rustc --version && cargo --version
- cargo build --release --jobs 1
run-fmt:
stage: fmt
before_script:
- rustup component add rustfmt
script:
- rustc --version && cargo --version
- cargo fmt -- --check
run-lint:
stage: lint
before_script:
- rustup component add clippy
script:
- rustc --version && cargo --version
- cargo clippy --all-targets --all-features -- -D warnings