matrix-dnsbot/.build.yml
Vasiliy Petrov 9fd22d7c34
Fix CI
2022-06-26 17:07:43 +07:00

33 lines
700 B
YAML

image: debian/bullseye
packages:
- curl
- openssl
- libssl-dev
- pkg-config
- lld
- gcc
- upx
sources:
- https://git.sr.ht/~cofob/matrix-dnsbot
triggers:
- action: email
condition: failure
to: failure@cofob.ru
artifacts:
- matrix-dnsbot/target/release/dnsbot
tasks:
- install: |
curl https://sh.rustup.rs -sSf | sh -s -- -y -q --default-toolchain nightly --profile minimal
- check: |
source $HOME/.cargo/env
cd matrix-dnsbot
cargo c
- test: |
source $HOME/.cargo/env
cd matrix-dnsbot
cargo test
- build: |
source $HOME/.cargo/env
cd matrix-dnsbot
cargo build --release
upx -9 target/release/dnsbot