-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathjustfile
44 lines (37 loc) · 1.19 KB
/
justfile
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
#!/usr/bin/env -S just --justfile
set fallback
default +FLAGS='': (build FLAGS) (test FLAGS) (lints FLAGS)
ci +FLAGS='': build test lints_deny
features := "std alloc std,alloc"
build +FLAGS='':
#!/bin/bash
set -euo pipefail
just logstart irox-tools::build-base
cargo build {{FLAGS}}
just logend
for feature in {{features}}; do
just logstart irox-tools::build-$feature
cargo build --features $feature {{FLAGS}}
just logend
done
test +FLAGS='':
#!/bin/bash
set -euo pipefail
just logstart irox-tools::test-base
cargo test {{FLAGS}}
just logend
for feature in {{features}}; do
just logstart irox-tools::test-$feature
cargo test --features $feature {{FLAGS}}
just logend
done
lints +FLAGS='':
@just logstart lints
cargo clippy --bins --lib --examples --no-default-features {{FLAGS}} --
cargo clippy --bins --lib --examples --all-features {{FLAGS}} --
@just logend
lints_deny +FLAGS='':
@just logstart lints
cargo clippy --bins --lib --examples --no-default-features {{FLAGS}} -- -Dwarnings
cargo clippy --bins --lib --examples --all-features {{FLAGS}} -- -Dwarnings
@just logend