42 lines
943 B
YAML
42 lines
943 B
YAML
version: 2
|
|
name: rustlings_test
|
|
description: ""
|
|
global:
|
|
concurrent: 1
|
|
workflow:
|
|
- ref: start
|
|
name: 开始
|
|
task: start
|
|
- ref: shell_0
|
|
name: shell
|
|
image: docker.jianmuhub.com/library/ubuntu:22.04
|
|
env:
|
|
GIT_PATH: git_clone_0.git_path
|
|
script:
|
|
- cd $GIT_PATH
|
|
- apt update
|
|
- apt install curl build-essential -y
|
|
- curl -sSf https://sh.rustup.rs -o rustup.rs
|
|
- sh rustup.rs --profile minimal --default-toolchain nightly -c
|
|
rust-src,rustfmt,clippy -y
|
|
- . "$HOME/.cargo/env"
|
|
- cargo test --test check --verbose
|
|
needs:
|
|
- git_clone_0
|
|
- ref: end
|
|
name: 结束
|
|
task: end
|
|
needs:
|
|
- shell_0
|
|
- ref: git_clone_0
|
|
name: git clone
|
|
task: git_clone@1.2.6
|
|
input:
|
|
remote_url: '"https://gitlink.org.cn/zhenxing/rust-rustlings-Gege-Wang.git"'
|
|
ref: '"refs/heads/main"'
|
|
commit_id: '""'
|
|
depth: 1
|
|
needs:
|
|
- start
|
|
|