This commit is contained in:
parent
485d44c56f
commit
5007f5ddba
1 changed files with 37 additions and 36 deletions
73
.drone.yml
73
.drone.yml
|
@ -1,45 +1,46 @@
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
name: tests
|
name: tests
|
||||||
steps:
|
steps:
|
||||||
- name: test-linux
|
- name: test-linux
|
||||||
image: rust
|
image: rust
|
||||||
commands:
|
commands:
|
||||||
- apt update
|
- apt update
|
||||||
- apt install -y cmake
|
- apt install -y cmake
|
||||||
- cargo test -v
|
- cargo test -v
|
||||||
|
|
||||||
|
- name: clippy-linux
|
||||||
|
image: rust
|
||||||
|
commands:
|
||||||
|
- apt update
|
||||||
|
- apt install -y cmake
|
||||||
|
- rustup component add clippy
|
||||||
|
- cargo clippy
|
||||||
|
|
||||||
- name: clippy-linux
|
|
||||||
image: rust
|
|
||||||
commands:
|
|
||||||
- apt update
|
|
||||||
- apt install -y cmake
|
|
||||||
- rustup component add clippy
|
|
||||||
- cargo clippy
|
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
name: release
|
name: release
|
||||||
steps:
|
steps:
|
||||||
- name: release-linux
|
- name: release-linux
|
||||||
image: rust
|
image: rust
|
||||||
commands:
|
commands:
|
||||||
- apt update
|
- apt update
|
||||||
- apt install -y cmake
|
- apt install -y cmake
|
||||||
- cargo build --release -v
|
- cargo build --release -v
|
||||||
- strip target/release/ruff
|
- 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
|
|
||||||
|
|
||||||
|
- 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
|
||||||
|
|
Loading…
Reference in a new issue