45 lines
961 B
YAML
45 lines
961 B
YAML
kind: pipeline
|
|
name: tests
|
|
steps:
|
|
- name: test-linux
|
|
image: rust
|
|
commands:
|
|
- apt update
|
|
- apt install -y cmake
|
|
- cargo test -v
|
|
|
|
- name: clippy-linux
|
|
image: rust
|
|
commands:
|
|
- apt update
|
|
- apt install -y cmake
|
|
- rustup component add clippy
|
|
- cargo clippy
|
|
|
|
---
|
|
kind: pipeline
|
|
name: release
|
|
steps:
|
|
- name: release-linux
|
|
image: rust
|
|
commands:
|
|
- apt update
|
|
- apt install -y cmake
|
|
- cargo build --release -v
|
|
- strip target/release/ruff
|
|
|
|
- name: publish
|
|
image: plugins/gitea-release
|
|
settings:
|
|
base_url: https://tilera.xyz/git
|
|
api_key:
|
|
from_secret: gitea_token
|
|
note: CHANGELOG.md
|
|
title: tag-${DRONE_TAG}
|
|
files:
|
|
- target/release/ruff
|
|
when:
|
|
event: tag
|
|
depends_on:
|
|
- release-linux
|
|
|