chore: add woodpecker config
ci/woodpecker/push/lint Pipeline failed Details
ci/woodpecker/push/clippy Pipeline failed Details
ci/woodpecker/push/build Pipeline failed Details

signal-handling
Jef Roosens 2023-06-03 15:01:17 +02:00
parent 826565dbae
commit ec64638159
Signed by: Jef Roosens
GPG Key ID: B75D4F293C7052DB
3 changed files with 40 additions and 0 deletions

View File

@ -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 ]'

View File

@ -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

View File

@ -0,0 +1,11 @@
platform: 'linux/amd64'
branches:
exclude: [main]
pipeline:
lint:
image: 'rust:1.70'
commands:
- rustup component add rustfmt
- cargo fmt -- --check