build(woodpecker): restore missing cargo build command
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

Merge build and lint steps
This commit is contained in:
Paul Campbell 2024-04-10 07:36:54 +01:00
parent 281271a82d
commit fac1b38828

View file

@ -26,17 +26,7 @@ steps:
prefix_regex: "(#|//) (TODO|FIXME): " prefix_regex: "(#|//) (TODO|FIXME): "
debug: false debug: false
build: lint_and_build:
when:
- event: push
branch: main
- event: tag
ref: refs/tags/v*
image: git.kemitix.net/kemitix/kxio-builder:latest
environment:
CARGO_TERM_COLOR: always
lint:
when: when:
- event: push - event: push
branch: main branch: main
@ -49,6 +39,7 @@ steps:
- ls -l /usr/local/cargo/bin/ - ls -l /usr/local/cargo/bin/
- cargo fmt --all -- --check - cargo fmt --all -- --check
- cargo clippy -- -D warnings -W clippy::nursery -W clippy::unwrap_used -W clippy::expect_used - cargo clippy -- -D warnings -W clippy::nursery -W clippy::unwrap_used -W clippy::expect_used
- cargo build
test: test:
when: when: