packager/.woodpecker.yml

41 lines
961 B
YAML
Raw Normal View History

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