packager/.woodpecker.yml
Didier 6335be4b04
All checks were successful
ci/woodpecker/tag/woodpecker Pipeline was successful
ci: add rustup clippy
2023-08-01 21:35:26 +02:00

41 lines
No EOL
980 B
YAML

when:
event:
- push
- manual
- tag
path:
include:
- "pkgr/**"
- "bootpkg/**"
- "pkgfile/**"
- "manifest/**"
steps:
clippy: # check if the code compiles
image: rust
commands:
- rustup component add clippy
- cargo clippy --release --no-deps --manifest-path bootpkg/Cargo.toml
- cargo clippy --release --no-deps --manifest-path pkgr/Cargo.toml
pull: true
failure: ignore
build:
image: rust
commands:
- cargo build --release --manifest-path bootpkg/Cargo.toml --all
- cargo build --release --manifest-path pkgr/Cargo.toml --all
pull: true
failure: fail
publish:
image: woodpeckerci/plugin-gitea-release
settings:
base_url: https://git.ixvd.net
files:
- "bootpkg/target/release/bootpkg"
- "pkgr/target/release/pkgr"
api_key:
from_secret: gitea_access_token
target: main
failure: ignore
when:
event: tag