From 996a7f3ec3599145a175351447c1c7c25e3631eb Mon Sep 17 00:00:00 2001 From: passthem Date: Sun, 22 Feb 2026 19:37:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20Drone=20=E6=9E=84=E5=BB=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..0dca836 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,35 @@ +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 + volumes: + - name: artifacts + path: /artifacts + commands: + - cp target/release/my-rust-app /artifacts/my-rust-app-amd64 + +volumes: + - name: artifacts + host: + path: /opt/build_artifacts