-
-
Notifications
You must be signed in to change notification settings - Fork 103
Expand file tree
/
Copy pathJustfile
More file actions
57 lines (45 loc) · 1.83 KB
/
Justfile
File metadata and controls
57 lines (45 loc) · 1.83 KB
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
set ignore-comments := true
set shell := ["zsh", "+o", "nomatch", "-ecu"]
set unstable := true
set script-interpreter := ["zsh", "+o", "nomatch", "-eu"]
_default:
@just --list --unsorted
nuke-n-pave:
git clean -dxff -e .husky -e .fonts -e .sources -e node_modules -e target -e completions
./bootstrap.sh
dev-conf: nuke-n-pave
./configure --enable-developer-mode --with-system-luarocks --with-system-lua-sources --without-manual --enable-debug DELTA=cat
make
rel-conf: nuke-n-pave
./configure --enable-developer-mode --with-system-luarocks --with-system-lua-sources --with-manual
make
perfect:
make check lint
restyle:
git ls-files '*.lua' '*.lua.in' '*.rockspec.in' .busted .luacov .luacheckrc build-aux/config.ld | xargs stylua --respect-ignores
git ls-files '*.rs' '*.rs.in' | xargs rustfmt --edition 2021 --config skip_children=true
git ls-files '*.toml' | xargs taplo format
[private]
[doc('Block execution if Git working tree isn’t pristine.')]
pristine:
# Ensure there are no changes in staging
git diff-index --quiet --cached HEAD || exit 1
# Ensure there are no changes in the working tree
git diff-files --quiet || exit 1
[private]
[doc('Block execution if we don’t have access to private keys.')]
keys:
gpg -a --sign > /dev/null <<< "test"
cut-release type: pristine
make release RELTYPE={{type}}
release semver: pristine
git describe HEAD --tags | grep -Fx 'v{{semver}}'
git push --atomic upstream master v{{semver}}
git push --atomic origin master v{{semver}}
git push --atomic gitlab master v{{semver}}
git push --atomic codeberg master v{{semver}}
post-release semver: keys
gh release download --clobber v{{semver}}
ls sile-{{semver}}.{pdf,zip,tar.zst} sile-x86_64 sile-vendored-crates-{{semver}}.tar.zst | xargs -n1 gpg -a --detach-sign
gh release upload v{{semver}} sile*-{{semver}}.asc sile-x86_64.asc
# vim: set ft=just