-
-
Notifications
You must be signed in to change notification settings - Fork 46
/
justfile
73 lines (59 loc) · 1.73 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
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
# https://github.com/casey/just
set shell := ["bash", "-euo", "pipefail", "-c"]
_:
@just --list
instantiate:
nix-instantiate \
--attr projects \
--show-trace \
build ATTR:
nix-build \
--attr '{{ATTR}}' \
--option cores 1 \
--option max-jobs auto \
--option sandbox true \
--quiet \
--show-trace \
default.nix
build-all:
ls -1 projects | while read -r project; do just build projects.$project; done
crawl:
bash makes/crawl/entrypoint.sh
examples:
nix-build examples/stable/shell.nix
nix-build examples/stable/nixpkgs.nix
rm -rf ./examples/unstable/flake.lock
nix-shell -p nixUnstable --run 'nix --experimental-features "flakes nix-command" -L build ./examples/unstable#something'
rm -rf ./examples/unstable/flake.lock
new PROJECT:
set +e; \
m . /create 3.7 {{PROJECT}}; just optimize; \
m . /create 3.8 {{PROJECT}}; just optimize; \
m . /create 3.9 {{PROJECT}}; just optimize; \
new-version PROJECT VERSION:
set +e; \
m . /create 3.7 {{PROJECT}} {{VERSION}}; just optimize; \
m . /create 3.8 {{PROJECT}} {{VERSION}}; just optimize; \
m . /create 3.9 {{PROJECT}} {{VERSION}}; just optimize; \
meta:
bash makes/meta/entrypoint.sh
optimize:
python3 makes/optimize/entrypoint.py
release PROJECT:
bash makes/release/entrypoint.sh {{PROJECT}}
release-dependencies PROJECT:
bash makes/release/dependencies/entrypoint.sh {{PROJECT}}
release-referrers PROJECT:
grep -lPr {{PROJECT}} projects \
| grep -oP 'projects/.*?/' \
| sort \
| uniq \
| xargs -n 1 basename \
| xargs -n 1 just release
release-all:
git ls-files --others --exclude-standard \
| grep -oP 'projects/.*?/' \
| sort \
| uniq \
| xargs -n 1 basename \
| xargs -n 1 just release