29 lines
525 B
YAML
29 lines
525 B
YAML
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
|
|
|