rieter/.woodpecker/build.yml

22 lines
599 B
YAML
Raw Permalink Normal View History

2023-07-31 18:13:55 +02:00
platform: 'linux/amd64'
2023-08-13 20:24:34 +02:00
when:
branch:
2024-07-08 22:54:47 +02:00
exclude: [dev, main]
2024-07-07 10:53:16 +02:00
event: push
2023-08-13 20:24:34 +02:00
steps:
2023-07-31 18:13:55 +02:00
build:
2024-07-07 13:30:12 +02:00
image: 'git.rustybever.be/chewing_bever/rieter-builder:1.79-alpine3.19'
2023-07-31 18:13:55 +02:00
commands:
- cargo build --verbose
2024-07-07 10:51:27 +02:00
# Binaries, even debug ones, should be statically compiled
- '[ "$(readelf -d target/debug/rieterd | grep NEEDED | wc -l)" = 0 ]'
2024-07-07 13:30:12 +02:00
# Clippy also performs a full build, so putting it here saves the CI a
# lot of work
clippy:
image: 'git.rustybever.be/chewing_bever/rieter-builder:1.79-alpine3.19'
commands:
2024-07-07 13:04:13 +02:00
- cargo clippy -- --no-deps -Dwarnings