-
Notifications
You must be signed in to change notification settings - Fork 17
/
vagga.yaml
86 lines (71 loc) · 2.23 KB
/
vagga.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
commands:
make: !Command
description: Build the library and CLI
container: ubuntu
run: [cargo, build]
cargo: !Command
description: Run arbitrary cargo command
symlink-name: cargo
container: ubuntu
run: [cargo]
nightly-build: !Command
description: Run cargo build on nightly
symlink-name: cargo
container: nightly
run: [cargo, build]
environ:
RUSTFLAGS: "-Z macro-backtrace"
expand: !Command
description: Run cargo expand
symlink-name: cargo
container: nightly
run: [cargo, expand]
test-rust: !Command
description: Run test suite
container: ubuntu
run: [cargo, test, --workspace]
volumes:
/tmp: !Tmpfs
size: 1Gi
test-rust-all-features: !Command
description: Run tests with all features enabled
container: ubuntu
run: [cargo, test, --workspace, --all-features]
volumes:
/tmp: !Tmpfs
size: 1Gi
test: !Command
description: Run all tests
container: ubuntu
prerequisites: [test-rust, test-rust-all-features]
run: [echo, Ok]
containers:
ubuntu:
setup:
- !Ubuntu jammy
- !Install [ca-certificates, git, build-essential, vim,
pkg-config, libssl-dev]
- !TarInstall
url: "https://static.rust-lang.org/dist/rust-1.68.0-x86_64-unknown-linux-gnu.tar.gz"
script: "./install.sh --prefix=/usr \
--components=rustc,rust-std-x86_64-unknown-linux-gnu,cargo"
- !TarInstall
url: "https://static.rust-lang.org/dist/rust-std-1.68.0-wasm32-unknown-unknown.tar.gz"
script: "./install.sh --prefix=/usr --components=rust-std-wasm32-unknown-unknown"
- !Sh 'cargo install cargo-release cargo-audit cargo-outdated --root=/usr'
environ:
HOME: /work/target
LANG: C.UTF-8
RUST_BACKTRACE: 1
nightly:
setup:
- !Ubuntu focal
- !Install [ca-certificates, git, build-essential, vim]
- !TarInstall
url: "https://static.rust-lang.org/dist/rust-nightly-x86_64-unknown-linux-gnu.tar.gz"
script: "./install.sh --prefix=/usr \
--components=rustc,rust-std-x86_64-unknown-linux-gnu,cargo"
- !Sh 'cargo install cargo-expand --root=/usr'
environ:
HOME: /work/target
RUST_BACKTRACE: 1