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
|
# Every recipe here is one line, because the work is in scripts/ — babashka
# scripts, run through the pin in scripts/bb. A recipe body is a shell script
# nobody can run on its own; a script in scripts/ is a script, and buck runs
# two of them as actions.
set shell := ["bash", "-euo", "pipefail", "-c"]
default:
@just --list
# Both native libraries, cloning jolt-native at the pinned commit if needed.
lib:
scripts/lib.bb
# buck2, with the machine's paths written where the BUCK files can read them.
buck *args:
scripts/buck.bb {{args}}
# The APK. `just apk install` puts it on the device.
apk action="build":
scripts/apk.bb {{action}}
# The archives scripts/*.dotslash pins, as the table buck reads.
sync-dist:
scripts/dotslash-to-buck
# The app.
run *args:
scripts/run.bb {{args}}
|