bevy_synthizer/.drone.yml

48 lines
1.2 KiB
YAML
Raw Normal View History

2022-12-06 23:11:09 +00:00
kind: pipeline
type: docker
name: default
environment:
DEPENDENCIES: cmake pkg-config libx11-dev libasound2-dev libudev-dev libxcb-xfixes0-dev libwayland-dev libxkbcommon-dev libvulkan-dev libpulse-dev
2022-12-06 23:11:09 +00:00
steps:
- name: test
2022-12-06 23:48:13 +00:00
image: rust:bullseye
2022-12-15 16:50:03 +00:00
pull: always
2022-12-06 23:11:09 +00:00
commands:
- apt-get update -qq
- apt-get install -qqy $DEPENDENCIES
- rustup component add clippy rustfmt
2022-12-06 23:11:09 +00:00
- cargo fmt --check
- cargo test
- cargo clippy
- name: release
2022-12-06 23:48:13 +00:00
image: rust:bullseye
2022-12-15 16:50:03 +00:00
pull: always
2022-12-06 23:11:09 +00:00
commands:
- apt-get update -qq
- apt-get install -qqy $DEPENDENCIES
2022-12-17 16:19:41 +00:00
- cargo publish
2022-12-06 23:11:09 +00:00
when:
ref:
- refs/tags/v*
environment:
CARGO_REGISTRY_TOKEN:
from_secret: cargo_registry_token
- name: discord notification
image: appleboy/drone-discord
when:
status: [success, failure]
settings:
webhook_id:
from_secret: discord_webhook_id
webhook_token:
from_secret: discord_webhook_token
tts: true
message: >
{{#success build.status}}
{{repo.name}} build {{build.number}} succeeded: <{{build.link}}>
{{else}}
{{repo.name}} build {{build.number}} failed: <{{build.link}}>
{{/success}}