-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathjustfile
More file actions
67 lines (57 loc) · 1.79 KB
/
justfile
File metadata and controls
67 lines (57 loc) · 1.79 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
58
59
60
61
62
63
64
65
66
67
[group("Repo")]
[doc("Default command; list all available commands.")]
@list:
just --list --unsorted
[group("Repo")]
[doc("Open repo on GitHub in your default browser.")]
repo:
open https://github.com/bitcoindevkit/bdk-jvm
[group("Repo")]
[doc("Build the API docs.")]
docs:
./gradlew :lib:dokkaGeneratePublicationHtml
[group("Repo")]
[doc("Publish the library to your local Maven repository.")]
publish-local:
./gradlew publishToMavenLocal
[group("Submodule")]
[doc("Initialize bdk-ffi submodule to committed hash.")]
submodule-init:
git submodule update --init
[group("Submodule")]
[doc("Hard reset the bdk-ffi submodule to committed hash.")]
submodule-reset:
git submodule update --force
[group("Submodule")]
[doc("Checkout the bdk-ffi submodule to the latest commit on master.")]
submodule-to-master:
cd ./bdk-ffi/ \
&& git fetch origin \
&& git checkout master \
&& git pull origin master
[group("Build")]
[doc("Build the library for given ARCH. Will use the committed version of the submodule.")]
build ARCH="macos-aarch64":
bash ./scripts/build-{{ARCH}}.sh
[group("Build")]
[doc("List available architectures for the build command.")]
@list-architectures:
echo "Available architectures:"
echo " - linux-x86_64"
echo " - macos-aarch64"
echo " - macos-x86_64"
echo " - windows-x86_64"
[group("Build")]
[doc("Remove all caches and previous build directories to start from scratch.")]
clean:
rm -rf ./bdk-ffi/bdk-ffi/target/
rm -rf ./build/
rm -rf ./lib/build/
rm -rf ./examples/build/
rm -rf ./examples/data/
rm -rf ./lib/src/main/kotlin/org/bitcoindevkit/*
rm -rf ./lib/src/main/resources/*
[group("Test")]
[doc("Run all tests, unless a specific test is provided.")]
test *TEST:
./gradlew test {{ if TEST == "" { "" } else { "--tests " + TEST } }}