packager/.woodpecker.yml
2023-10-14 22:39:46 +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