39 lines
912 B
YAML
39 lines
912 B
YAML
kind: pipeline
|
|
name: tests
|
|
steps:
|
|
- name: test-linux
|
|
image: rust
|
|
commands:
|
|
- cargo test -v
|
|
---
|
|
kind: pipeline
|
|
name: release
|
|
steps:
|
|
- name: release-linux
|
|
image: rust
|
|
commands:
|
|
- cargo build --release
|
|
|
|
- name: release-win
|
|
image: lordmzte/rust-win
|
|
commands:
|
|
- cargo build --release --target x86_64-pc-windows-gnu
|
|
|
|
- name: publish
|
|
image: plugins/gitea-release
|
|
settings:
|
|
base_url: https://data.tilera.xyz/git
|
|
api_key:
|
|
from_secret: gitea_token
|
|
note: CHANGELOG.md
|
|
files:
|
|
- target/release/jm
|
|
- target/release/jmtoken
|
|
- target/x86_64-pc-windows-gnu/release/jm.exe
|
|
- target/x86_64-pc-windows-gnu/release/jmtoken.exe
|
|
when:
|
|
event: tag
|
|
depends_on:
|
|
- release-linux
|
|
- release-win
|
|
|