不要了不要了(指自动构建)
This commit is contained in:
28
.drone.yml
28
.drone.yml
@ -1,28 +0,0 @@
|
|||||||
kind: pipeline
|
|
||||||
type: docker
|
|
||||||
name: rust-build-amd64
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: check-version
|
|
||||||
image: rust:1.93
|
|
||||||
commands:
|
|
||||||
- rustc --version
|
|
||||||
- cargo --version
|
|
||||||
|
|
||||||
- name: build
|
|
||||||
image: rust:1.93
|
|
||||||
environment:
|
|
||||||
CARGO_HOME: .cargo
|
|
||||||
commands:
|
|
||||||
- cargo build --release --target x86_64-unknown-linux-gnu
|
|
||||||
|
|
||||||
- name: test
|
|
||||||
image: rust:1.93
|
|
||||||
commands:
|
|
||||||
- cargo test --release
|
|
||||||
|
|
||||||
- name: copy-out
|
|
||||||
image: busybox
|
|
||||||
commands:
|
|
||||||
- cp target/release/my-rust-app /artifacts/my-rust-app-amd64
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user