chore: add woodpecker config
parent
826565dbae
commit
ec64638159
|
@ -0,0 +1,18 @@
|
|||
matrix:
|
||||
ARCH:
|
||||
- 'amd64'
|
||||
- 'arm64'
|
||||
|
||||
platform: "linux/${ARCH}"
|
||||
|
||||
branches:
|
||||
exclude: [main]
|
||||
|
||||
pipeline:
|
||||
build:
|
||||
image: 'rust:1.70'
|
||||
commands:
|
||||
- cargo build --verbose
|
||||
- cargo test --verbose
|
||||
# Binaries, even debug ones, should be statically compiled
|
||||
- '[ "$(readelf -d target/debug/alex | grep NEEDED | wc -l)" = 0 ]'
|
|
@ -0,0 +1,11 @@
|
|||
platform: 'linux/amd64'
|
||||
|
||||
branches:
|
||||
exclude: [main]
|
||||
|
||||
pipeline:
|
||||
clippy:
|
||||
image: 'rust:1.70'
|
||||
commands:
|
||||
- rustup component add clippy
|
||||
- cargo clippy -- --no-deps -Dwarnings
|
|
@ -0,0 +1,11 @@
|
|||
platform: 'linux/amd64'
|
||||
|
||||
branches:
|
||||
exclude: [main]
|
||||
|
||||
pipeline:
|
||||
lint:
|
||||
image: 'rust:1.70'
|
||||
commands:
|
||||
- rustup component add rustfmt
|
||||
- cargo fmt -- --check
|
Loading…
Reference in New Issue