Author: Kevin Schoon [me@kevinschoon.com]
Hash: 6242ea44748c92dbb38c99fc67b6947bb8aa2ca3
Timestamp: Thu, 28 Dec 2023 19:02:33 +0000 (4 months ago)

+18 -39 +/-1 browse
simplify build script
1diff --git a/.ayllu/build/main.ncl b/.ayllu/build/main.ncl
2index be26c49..ceb7bad 100644
3--- a/.ayllu/build/main.ncl
4+++ b/.ayllu/build/main.ncl
5 @@ -1,45 +1,24 @@
6- let test_targets = [
7- "ayllu_api",
8- "ayllu_config",
9- "ayllu_database",
10- "ayllu_git",
11- "ayllu_rpc",
12- "ayllu_scheduler",
13- "ayllu_mail",
14- "ayllu_build",
15- "ayllu_xmpp",
16- ]
17- in
18 {
19 workflows = [
20 {
21- name = "Clippy",
22- steps =
23- std.array.map
24- (
25- fun target =>
26- {
27- name = "Clippy %{target}",
28- shell = "/bin/sh",
29- input = "cargo clippy -p %{target} -- --deny warnings",
30- }
31- )
32- test_targets,
33- },
34- {
35- name = "Tests",
36- steps =
37- std.array.map
38- (
39- fun target =>
40- {
41- name = "Test %{target}",
42- shell = "/bin/sh",
43- input = "cargo test -p %{target}",
44- }
45- )
46- test_targets,
47- dependencies = ["Clippy"]
48+ name = "Simple",
49+ steps = [
50+ {
51+ name = "Format",
52+ shell = "/bin/sh",
53+ input = "cargo fmt --all --check",
54+ },
55+ {
56+ name = "Clippy",
57+ shell = "/bin/sh",
58+ input = "cargo clippy --all -- --deny warnings",
59+ },
60+ {
61+ name = "Run Tests",
62+ shell = "/bin/sh",
63+ input = "cargo test --all",
64+ }
65+ ]
66 }
67 ]
68 }